Skip to content

Commit d9599ed

Browse files
t-8chmchehab
authored andcommitted
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>
1 parent b76fb1f commit d9599ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/media/i2c/imx208.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ static int imx208_read_otp(struct imx208 *imx208)
814814
}
815815

816816
static ssize_t otp_read(struct file *filp, struct kobject *kobj,
817-
struct bin_attribute *bin_attr,
817+
const struct bin_attribute *bin_attr,
818818
char *buf, loff_t off, size_t count)
819819
{
820820
struct i2c_client *client = to_i2c_client(kobj_to_dev(kobj));

0 commit comments

Comments
 (0)