[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20241215-sysfs-const-bin_attr-imx208-v1-1-0ad57556c5d7@weissschuh.net>
Date: Sun, 15 Dec 2024 15:18:33 +0100
From: Thomas Weißschuh <linux@...ssschuh.net>
To: Sakari Ailus <sakari.ailus@...ux.intel.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
Thomas Weißschuh <linux@...ssschuh.net>
Subject: [PATCH] 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@...ssschuh.net>
---
drivers/media/i2c/imx208.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/i2c/imx208.c b/drivers/media/i2c/imx208.c
index 2184c90f7864d4f69855e57cdcdd87396b77df87..2b5a6ce7b1ae6ee120c1aacd9bef62c2078af833 100644
--- a/drivers/media/i2c/imx208.c
+++ b/drivers/media/i2c/imx208.c
@@ -814,7 +814,7 @@ static int imx208_read_otp(struct imx208 *imx208)
}
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));
---
base-commit: 2d8308bf5b67dff50262d8a9260a50113b3628c6
change-id: 20241215-sysfs-const-bin_attr-imx208-0a571c1cf50a
Best regards,
--
Thomas Weißschuh <linux@...ssschuh.net>
Powered by blists - more mailing lists