From: Beomho Seo Date: Wed, 2 Apr 2014 08:16:00 +0000 (+0100) Subject: iio: ak8975: Add device name X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=54ab3e24;p=openwrt%2Fstaging%2Fblogic.git iio: ak8975: Add device name This patch add device name. Signed-off-by: Beomho Seo Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/magnetometer/ak8975.c b/drivers/iio/magnetometer/ak8975.c index ff284e5afd95..039c3e85caf4 100644 --- a/drivers/iio/magnetometer/ak8975.c +++ b/drivers/iio/magnetometer/ak8975.c @@ -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);