* [PATCH] at25: use dev_lseek_default as at24 does
@ 2012-12-03 5:46 Antony Pavlov
2012-12-03 10:02 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Antony Pavlov @ 2012-12-03 5:46 UTC (permalink / raw)
To: barebox
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
drivers/eeprom/at25.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/eeprom/at25.c b/drivers/eeprom/at25.c
index 5578c78..9bd7748 100644
--- a/drivers/eeprom/at25.c
+++ b/drivers/eeprom/at25.c
@@ -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)
--
1.7.10.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] at25: use dev_lseek_default as at24 does
2012-12-03 5:46 [PATCH] at25: use dev_lseek_default as at24 does Antony Pavlov
@ 2012-12-03 10:02 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2012-12-03 10:02 UTC (permalink / raw)
To: Antony Pavlov; +Cc: barebox
On Mon, Dec 03, 2012 at 09:46:52AM +0400, Antony Pavlov wrote:
> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
> ---
> drivers/eeprom/at25.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
Applied, thanks
Sascha
>
> diff --git a/drivers/eeprom/at25.c b/drivers/eeprom/at25.c
> index 5578c78..9bd7748 100644
> --- a/drivers/eeprom/at25.c
> +++ b/drivers/eeprom/at25.c
> @@ -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)
> --
> 1.7.10.4
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-03 10:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-03 5:46 [PATCH] at25: use dev_lseek_default as at24 does Antony Pavlov
2012-12-03 10:02 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox