summaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorBeomho Seo <beomho.seo@samsung.com>2014-04-02 12:16:00 +0400
committerJonathan Cameron <jic23@kernel.org>2014-02-08 14:31:29 +0400
commit54ab3e244d0b7e80120778503c697b9997cf673b (patch)
treefd213438f9dd0bda94c554dee03e0cbc2a348840 /drivers/iio
parenta04cf55a527896058ea53c3840fa1f075df35720 (diff)
downloadlinux-54ab3e244d0b7e80120778503c697b9997cf673b.tar.xz
iio: ak8975: Add device name
This patch add device name. Signed-off-by: Beomho Seo <beomho.seo@samsung.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/magnetometer/ak8975.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/ak8975.c b/drivers/iio/magnetometer/ak8975.c
index ff284e5afd95..039c3e85caf4 100644
--- a/drivers/iio/magnetometer/ak8975.c
+++ b/drivers/iio/magnetometer/ak8975.c
@@ -511,6 +511,7 @@ static int ak8975_probe(struct i2c_client *client,
indio_dev->channels = ak8975_channels;
indio_dev->num_channels = ARRAY_SIZE(ak8975_channels);
indio_dev->info = &ak8975_info;
+ indio_dev->name = id->name;
indio_dev->modes = INDIO_DIRECT_MODE;
err = iio_device_register(indio_dev);