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>
Tue, 18 Nov 2014 02:46:56 +0000 (11:46 +0900)
This patch add device name.

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

index aeba3bb..58b874b 100644 (file)
@@ -506,6 +506,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);