[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <54FC325B.7020004@kernel.org>
Date: Sun, 08 Mar 2015 11:28:27 +0000
From: Jonathan Cameron <jic23@...nel.org>
To: Marek Belisko <marek@...delico.com>, gregkh@...uxfoundation.org
CC: linux-iio@...r.kernel.org, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org, hns@...delico.com
Subject: Re: [PATCH] staging: iio: hmc5843: Set iio name property in sysfs
On 28/02/15 20:54, Marek Belisko wrote:
> Without this change file name for hmc5843 is empty in
> /sys/bus/iio/devices/iio\:device*/name
>
> With this change name is reported correctly:
> cat /sys/bus/iio/devices/iio\:device*/name
> hmc5843
>
> Signed-off-by: Marek Belisko <marek@...delico.com>
Good catch, thanks.
Applied to the fixes-togreg branch of iio.git.
Jonathan
> ---
> drivers/staging/iio/magnetometer/hmc5843_core.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/staging/iio/magnetometer/hmc5843_core.c b/drivers/staging/iio/magnetometer/hmc5843_core.c
> index fd171d8..90cc18b 100644
> --- a/drivers/staging/iio/magnetometer/hmc5843_core.c
> +++ b/drivers/staging/iio/magnetometer/hmc5843_core.c
> @@ -592,6 +592,7 @@ int hmc5843_common_probe(struct device *dev, struct regmap *regmap,
> mutex_init(&data->lock);
>
> indio_dev->dev.parent = dev;
> + indio_dev->name = dev->driver->name;
> indio_dev->info = &hmc5843_info;
> indio_dev->modes = INDIO_DIRECT_MODE;
> indio_dev->channels = data->variant->channels;
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists