iio: ak8975: Add device name
authorBeomho Seo <beomho.seo@samsung.com>
Wed, 2 Apr 2014 08:16:00 +0000 (09:16 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 8 Feb 2014 10:31:29 +0000 (10:31 +0000)
This patch add device name.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/ak8975.c

index ff284e5afd9587c4e8a14bc9633b018098ce983c..039c3e85caf4213906ba524f56840bce413bb90f 100644 (file)
@@ -511,6 +511,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);