From: Jonathan Cameron <jic23@cam.ac.uk>
To: Shubhrajyoti D <shubhrajyoti@ti.com>
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH] iio: hmc5843 : trivial changes to the way scale is reported
Date: Sat, 04 Sep 2010 17:01:53 +0100 [thread overview]
Message-ID: <4C826D71.7050405@cam.ac.uk> (raw)
In-Reply-To: <1283508448-19664-1-git-send-email-shubhrajyoti@ti.com>
On 09/03/10 11:07, Shubhrajyoti D wrote:
> Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Thanks.
Please forward to Greg KH <greg@kroah.com>
(or I can add it to my next series if you prefer.)
Jonathan
> ---
> drivers/staging/iio/magnetometer/hmc5843.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/staging/iio/magnetometer/hmc5843.c b/drivers/staging/iio/magnetometer/hmc5843.c
> index 66aab5a..b35b443 100644
> --- a/drivers/staging/iio/magnetometer/hmc5843.c
> +++ b/drivers/staging/iio/magnetometer/hmc5843.c
> @@ -465,7 +465,7 @@ static ssize_t show_scale(struct device *dev,
> {
> struct iio_dev *indio_dev = dev_get_drvdata(dev);
> struct hmc5843_data *data = indio_dev->dev_data;
> - return strlen(strcpy(buf, regval_to_scale[data->range]));
> + return sprintf(buf, "%s\n", regval_to_scale[data->range]);
> }
> static IIO_DEVICE_ATTR(magn_scale,
> S_IRUGO,
next prev parent reply other threads:[~2010-09-04 15:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-03 10:07 [PATCH] iio: hmc5843 : trivial changes to the way scale is reported Shubhrajyoti D
2010-09-04 16:01 ` Jonathan Cameron [this message]
2010-09-06 6:49 ` Datta, Shubhrajyoti
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=4C826D71.7050405@cam.ac.uk \
--to=jic23@cam.ac.uk \
--cc=linux-iio@vger.kernel.org \
--cc=shubhrajyoti@ti.com \
/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