提交 54ab3e24 编写于 作者: B Beomho Seo 提交者: Jonathan Cameron

iio: ak8975: Add device name

This patch add device name.
Signed-off-by: NBeomho Seo <beomho.seo@samsung.com>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 a04cf55a
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册