Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thomas Weißschuh and committed by
Mauro Carvalho Chehab
d9599ed3 b76fb1f2

+1 -1
+1 -1
drivers/media/i2c/imx208.c
··· 814 814 } 815 815 816 816 static ssize_t otp_read(struct file *filp, struct kobject *kobj, 817 - struct bin_attribute *bin_attr, 817 + const struct bin_attribute *bin_attr, 818 818 char *buf, loff_t off, size_t count) 819 819 { 820 820 struct i2c_client *client = to_i2c_client(kobj_to_dev(kobj));