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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
b76fb1f2c5
commit
d9599ed328
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user