Message ID | 20241215-sysfs-const-bin_attr-imx208-v1-1-0ad57556c5d7@weissschuh.net (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | media: i2c: imx208: Use const 'struct bin_attribute' callback | expand |
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));
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> --- drivers/media/i2c/imx208.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- base-commit: 2d8308bf5b67dff50262d8a9260a50113b3628c6 change-id: 20241215-sysfs-const-bin_attr-imx208-0a571c1cf50a Best regards,