iio: ak8975: Add device name
authorBeomho Seo <beomho.seo@samsung.com>
Mon, 10 Feb 2014 01:01:57 +0000 (10:01 +0900)
committerChanho Park <chanho61.park@samsung.com>
Thu, 20 Mar 2014 08:43:39 +0000 (17:43 +0900)
This patch add device name.

Change-Id: Icda321686ee9c9809463592bddfbaa87563aeae4
Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
drivers/iio/magnetometer/ak8975.c

index 9edf4c9..fb3aefe 100644 (file)
@@ -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);