aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2024-12-15 15:18:33 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2024-12-19 12:50:19 +0100
commitd9599ed3281bd0595d137277daf603714d833575 (patch)
treea0abdd094a498a815e791c6dc38e69af4d340ef4
parentmedia: Documentation: tx-rx: Fix formatting (diff)
downloadwireguard-linux-d9599ed3281bd0595d137277daf603714d833575.tar.xz
wireguard-linux-d9599ed3281bd0595d137277daf603714d833575.zip
media: i2c: imx208: Use const 'struct bin_attribute' callback
The sysfs core now provides callback variants that explicitly take a const pointer. Make use of it to match the attribute definition. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r--drivers/media/i2c/imx208.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/imx208.c b/drivers/media/i2c/imx208.c
index 2184c90f7864..2b5a6ce7b1ae 100644
--- a/drivers/media/i2c/imx208.c
+++ b/drivers/media/i2c/imx208.c
@@ -814,7 +814,7 @@ out_unlock:
}
static ssize_t otp_read(struct file *filp, struct kobject *kobj,
- struct bin_attribute *bin_attr,
+ const struct bin_attribute *bin_attr,
char *buf, loff_t off, size_t count)
{
struct i2c_client *client = to_i2c_client(kobj_to_dev(kobj));