Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d09f48a authored by Marek Belisko's avatar Marek Belisko Committed by Jonathan Cameron
Browse files

staging: iio: hmc5843: Set iio name property in sysfs



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: default avatarMarek Belisko <marek@goldelico.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 0ba8da96
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -592,6 +592,7 @@ int hmc5843_common_probe(struct device *dev, struct regmap *regmap,
	mutex_init(&data->lock);
	mutex_init(&data->lock);


	indio_dev->dev.parent = dev;
	indio_dev->dev.parent = dev;
	indio_dev->name = dev->driver->name;
	indio_dev->info = &hmc5843_info;
	indio_dev->info = &hmc5843_info;
	indio_dev->modes = INDIO_DIRECT_MODE;
	indio_dev->modes = INDIO_DIRECT_MODE;
	indio_dev->channels = data->variant->channels;
	indio_dev->channels = data->variant->channels;