summaryrefslogtreecommitdiffstats
path: root/drivers/iio/magnetometer
diff options
context:
space:
mode:
authorBeomho Seo <beomho.seo@samsung.com>2014-04-02 10:16:00 +0200
committerJonathan Cameron <jic23@kernel.org>2014-02-08 11:31:29 +0100
commit54ab3e244d0b7e80120778503c697b9997cf673b (patch)
treefd213438f9dd0bda94c554dee03e0cbc2a348840 /drivers/iio/magnetometer
parentiio: dac: ad7303: remove an unneeded check (diff)
downloadlinux-54ab3e244d0b7e80120778503c697b9997cf673b.tar.xz
linux-54ab3e244d0b7e80120778503c697b9997cf673b.zip
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/magnetometer')
-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);