Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: dac: mcp4725: set iio name property in sysfs

Without this change, the name entity for mcp4725 is missing in
/sys/bus/iio/devices/iio\:device*/name

With this change, name is reported correctly

Signed-off-by: Yong Li <sdliyong@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Yong Li and committed by
Jonathan Cameron
97a249e9 005ce071

+1
+1
drivers/iio/dac/mcp4725.c
··· 300 300 data->client = client; 301 301 302 302 indio_dev->dev.parent = &client->dev; 303 + indio_dev->name = id->name; 303 304 indio_dev->info = &mcp4725_info; 304 305 indio_dev->channels = &mcp4725_channel; 305 306 indio_dev->num_channels = 1;