media: dvb_frontend: make static read-only array DIB3000MC_I2C_ADDRESS const
authorColin Ian King <colin.i.king@gmail.com>
Sun, 23 Jan 2022 22:52:56 +0000 (23:52 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 7 Mar 2022 10:51:14 +0000 (11:51 +0100)
The static array DIB3000MC_I2C_ADDRESS is read-only so it make sense
to make it const. Also add spaces to clean up checkpatch warnings.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/dvb-frontends/dib3000mc.c

index 692600c..2e11a24 100644 (file)
@@ -859,7 +859,7 @@ int dib3000mc_i2c_enumeration(struct i2c_adapter *i2c, int no_of_demods, u8 defa
        int k;
        u8 new_addr;
 
-       static u8 DIB3000MC_I2C_ADDRESS[] = {20,22,24,26};
+       static const u8 DIB3000MC_I2C_ADDRESS[] = { 20, 22, 24, 26 };
 
        dmcst = kzalloc(sizeof(struct dib3000mc_state), GFP_KERNEL);
        if (dmcst == NULL)