From: Sascha Hauer <s.hauer@pengutronix.de>
To: Antony Pavlov <antonynpavlov@gmail.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] at25: use dev_lseek_default as at24 does
Date: Mon, 3 Dec 2012 11:02:50 +0100 [thread overview]
Message-ID: <20121203100250.GP10369@pengutronix.de> (raw)
In-Reply-To: <1354513612-32271-1-git-send-email-antonynpavlov@gmail.com>
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
prev parent reply other threads:[~2012-12-03 10:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-03 5:46 Antony Pavlov
2012-12-03 10:02 ` Sascha Hauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121203100250.GP10369@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=antonynpavlov@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox