* [PATCH 2/2] iio: ak8975: Add device name
@ 2014-01-29 5:05 Beomho Seo
0 siblings, 0 replies; only message in thread
From: Beomho Seo @ 2014-01-29 5:05 UTC (permalink / raw)
To: linux-iio
Cc: Jonathan Cameron, Lars-Peter Clausen, Myungjoo Ham, Jaehoon Chung,
ldewangan
Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
---
drivers/iio/magnetometer/ak8975.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iio/magnetometer/ak8975.c b/drivers/iio/magnetometer/ak8975.c
index ae64390..f30f0ee 100644
--- a/drivers/iio/magnetometer/ak8975.c
+++ b/drivers/iio/magnetometer/ak8975.c
@@ -513,6 +513,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);
--
1.7.9.5
--
Best Regards,
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-29 5:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-29 5:05 [PATCH 2/2] iio: ak8975: Add device name Beomho Seo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.