From: Beomho Seo Date: Wed, 2 Apr 2014 08:16:00 +0000 (+0100) Subject: iio: ak8975: Add device name X-Git-Tag: Ubuntu-5.2.0-15.16~13767^2~1171^2~2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=54ab3e244d0b7e80120778503c697b9997cf673b;p=mirror_ubuntu-eoan-kernel.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);