All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] iio: ak8975: Set name
@ 2014-02-05 10:29 Manuel Stahl
  2014-02-05 11:19 ` Beomho Seo
  0 siblings, 1 reply; 2+ messages in thread
From: Manuel Stahl @ 2014-02-05 10:29 UTC (permalink / raw)
  To: jic23; +Cc: Manuel Stahl, linux-iio

This creates the mandatory name attribute for the device.

Signed-off-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de>
---
 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 ff284e5..c61a764 100644
--- a/drivers/iio/magnetometer/ak8975.c
+++ b/drivers/iio/magnetometer/ak8975.c
@@ -508,6 +508,7 @@ static int ak8975_probe(struct i2c_client *client,
 	mutex_init(&data->lock);
 	data->eoc_gpio = eoc_gpio;
 	indio_dev->dev.parent = &client->dev;
+	indio_dev->name = id->name;
 	indio_dev->channels = ak8975_channels;
 	indio_dev->num_channels = ARRAY_SIZE(ak8975_channels);
 	indio_dev->info = &ak8975_info;
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-05 11:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-05 10:29 [PATCH 1/1] iio: ak8975: Set name Manuel Stahl
2014-02-05 11:19 ` 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.