at25: use dev_lseek_default as at24 does
PATCH 1/1 at25: use dev_lseek_default as at24 does
Signed-off-by Antony Pavlov <[email protected]>
--- drivers/eeprom/at25.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/eeprom/at25.c +1 -6
@@ -232,15 +232,10 @@ static ssize_t at25_ee_write(struct cdev *cdev,return written ? written : status; } -static loff_t at25_ee_lseek (struct cdev *cdev,loff_t off) -{ -return off; -} -static struct file_operations at25_fops = { .read = at25_ee_read, .write = at25_ee_write, - .lseek = at25_ee_lseek, + .lseek = dev_lseek_default, };static int at25_probe (struct device_d *dev)
Signature · 7 lines
1.7.10.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 4 lines · Antony Pavlov
Signed-off-by Antony Pavlov <[email protected]>--- drivers/eeprom/at25.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
Applied, thanks
Sascha
Quoted 31 lines
drivers/eeprom/at25.c +1
-6@@ -232,15 +232,10 @@ static ssize_t at25_ee_write(struct cdev *cdev,return written ? written : status; } -static loff_t at25_ee_lseek (struct cdev *cdev,loff_t off) -{ -return off; -} -static struct file_operations at25_fops = { .read = at25_ee_read, .write = at25_ee_write, - .lseek = at25_ee_lseek, + .lseek = dev_lseek_default, };static int at25_probe (struct device_d *dev)Signature · 7 lines
1.7.10.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
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