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>
This commit is contained in:
parent
a04cf55a52
commit
54ab3e244d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user