eeprom: at24: fix 'assignment from incompatible pointer type' warning
PATCH 1/1 eeprom: at24: fix 'assignment from incompatible pointer type' warning
The patch fixes this compiler's warning:
CC drivers/eeprom/at24.o
drivers/eeprom/at24.c: In function ‘at24_probe’:
drivers/eeprom/at24.c:453:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
at24->fops.protect = at24_cdev_protect,
^
Signed-off-by Antony Pavlov <[email protected]>
--- drivers/eeprom/at24.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/eeprom/at24.c +1 -1
@@ -352,7 +352,7 @@ static ssize_t at24_cdev_write(struct cdev *cdev, const void *buf, size_t count,return at24_write (at24, buf, off, count); } -static ssize_t at24_cdev_protect (struct cdev *cdev,size_t count,loff_t offset, +static int at24_cdev_protect (struct cdev *cdev,size_t count,loff_t offset,int prot) {struct at24_data *at24 = cdev->priv;
Signature · 7 lines
2.14.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 9 lines · Antony Pavlov
The patch fixes this compiler's warning:
CC
drivers/eeprom/at24.o
drivers/eeprom/at24.c: In function ‘at24_probe’:
drivers/eeprom/at24.c:453:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
at24->fops.protect=at24_cdev_protect,
^
Quoted 4 lines
Signed-off-by Antony Pavlov <[email protected]>--- drivers/eeprom/at24.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks
Sascha
Quoted 18 lines
drivers/eeprom/at24.c +1
-1@@ -352,7 +352,7 @@ static ssize_t at24_cdev_write(struct cdev *cdev, const void *buf, size_t count,return at24_write (at24, buf, off, count); } -static ssize_t at24_cdev_protect (struct cdev *cdev,size_t count,loff_t offset, +static int at24_cdev_protect (struct cdev *cdev,size_t count,loff_t offset,int prot) {struct at24_data *at24 = cdev->priv;Signature · 1 line
2.14.1
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox