OSDN Git Service

media: ov5647: Constify oe_enable/disable reglist
authorJacopo Mondi <jacopo@jmondi.org>
Thu, 19 Nov 2020 16:35:48 +0000 (17:35 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 12 Jan 2021 16:02:08 +0000 (17:02 +0100)
Make the two register-value lists const.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ov5647.c

index 8061058..963f516 100644 (file)
@@ -121,13 +121,13 @@ static inline struct ov5647 *to_sensor(struct v4l2_subdev *sd)
        return container_of(sd, struct ov5647, sd);
 }
 
-static struct regval_list sensor_oe_disable_regs[] = {
+static const struct regval_list sensor_oe_disable_regs[] = {
        {0x3000, 0x00},
        {0x3001, 0x00},
        {0x3002, 0x00},
 };
 
-static struct regval_list sensor_oe_enable_regs[] = {
+static const struct regval_list sensor_oe_enable_regs[] = {
        {0x3000, 0x0f},
        {0x3001, 0xff},
        {0x3002, 0xe4},