Skip to contentSkip to conversation

iio: ak8975: Add device name

PATCH RESEND Applied Beomho Seo 2 participants 2 messages Feb 4, 2014 – Feb 8, 2014 IIO

lore
Share & tools
lore

Beomho Seo

author
#0 lore raw

PATCH RESEND 2/2 iio: ak8975: Add device name

This patch add device name.

---
 drivers/iio/magnetometer/ak8975.c |    1 +
 1 file changed, 1 insertion(+)
drivers/iio/magnetometer/ak8975.c +1 -0
index 0542354..74866d1 100644
@@ -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);
Signature · 4 lines
1.7.9.5

-- 
Best Regards,
maintainer Applied
#1 lore raw
Quoted 4 lines · Beomho Seo

This patch add device name.

Applied to the togreg branch of iio.git

Whilst this is bringing the driver inline with the ABI, it probably doesn't count as a bug fix and so can wait until the next merge window.

Thanks,

Jonathan

Quoted 17 lines
---
  drivers/iio/magnetometer/ak8975.c |    1 +
  1 file changed, 1 insertion(+)
drivers/iio/magnetometer/ak8975.c +1 -0
index 0542354..74866d1 100644
@@ -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);