[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1503138855-585-4-git-send-email-bhumirks@gmail.com>
Date: Sat, 19 Aug 2017 16:04:14 +0530
From: Bhumika Goyal <bhumirks@...il.com>
To: julia.lawall@...6.fr, wsa@...-dreams.de, jacmet@...site.dk,
jglauber@...ium.com, david.daney@...ium.com,
hans.verkuil@...co.com, mchehab@...nel.org,
awalls@...metrocast.net, serjk@...up.ru, aospan@...up.ru,
isely@...ox.com, ezequiel@...guardiasur.com.ar,
linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-media@...r.kernel.org
Cc: Bhumika Goyal <bhumirks@...il.com>
Subject: [PATCH 3/4] [media] radio-usb-si4713: make i2c_adapter const
Make this const as it is only used in a copy operation.
Done using Coccinelle
Signed-off-by: Bhumika Goyal <bhumirks@...il.com>
---
drivers/media/radio/si4713/radio-usb-si4713.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/radio/si4713/radio-usb-si4713.c b/drivers/media/radio/si4713/radio-usb-si4713.c
index e5e5a16..f20aac2 100644
--- a/drivers/media/radio/si4713/radio-usb-si4713.c
+++ b/drivers/media/radio/si4713/radio-usb-si4713.c
@@ -409,7 +409,7 @@ static u32 si4713_functionality(struct i2c_adapter *adapter)
/* This name value shows up in the sysfs filename associated
with this I2C adapter */
-static struct i2c_adapter si4713_i2c_adapter_template = {
+static const struct i2c_adapter si4713_i2c_adapter_template = {
.name = "si4713-i2c",
.owner = THIS_MODULE,
.algo = &si4713_algo,
--
1.9.1
Powered by blists - more mailing lists