diff mbox series

[2/3] media: i2c: ov9282: Make common_regs_list static

Message ID 20221128162249.536455-3-dave.stevenson@raspberrypi.com
State Accepted
Commit 483c84bf50e7ec0fc2887f35b76c8cc57ba81574
Headers show
Series ov9282: Fix Smatch errors | expand

Commit Message

Dave Stevenson Nov. 28, 2022, 4:22 p.m. UTC
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>
---
 drivers/media/i2c/ov9282.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/media/i2c/ov9282.c b/drivers/media/i2c/ov9282.c
index a8ab523b6a40..94e18da55a05 100644
--- a/drivers/media/i2c/ov9282.c
+++ b/drivers/media/i2c/ov9282.c
@@ -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,
 };