1
0
Fork 0

iio: ak8975: Add device name

This patch add device name.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
hifive-unleashed-5.1
Beomho Seo 2014-04-02 09:16:00 +01:00 committed by Jonathan Cameron
parent a04cf55a52
commit 54ab3e244d
1 changed files with 1 additions and 0 deletions

View 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);