]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: i2c: ov9282: Make common_regs_list static
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 28 Nov 2022 16:22:48 +0000 (16:22 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 6 Dec 2022 07:24:47 +0000 (07:24 +0000)
common_regs_list is only used within this file, so should
be static. Make it so.

Fixes: 7195aabf8f8b ("media: i2c: ov9282: Split registers into common and mode specific")
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov9282.c

index 7b1270df426306903e21e93e7fc21ad4d3f35cf5..3749501c310406474b8cd4d9f2f1730aa9d2e688 100644 (file)
@@ -268,7 +268,7 @@ static const struct ov9282_reg common_regs[] = {
        {0x5a08, 0x84},
 };
 
-struct ov9282_reg_list common_regs_list = {
+static struct ov9282_reg_list common_regs_list = {
        .num_of_regs = ARRAY_SIZE(common_regs),
        .regs = common_regs,
 };