projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a04cf55
)
iio: ak8975: Add device name
author
Beomho Seo
<beomho.seo@samsung.com>
Wed, 2 Apr 2014 08:16:00 +0000
(09:16 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 8 Feb 2014 10:31:29 +0000
(10:31 +0000)
This patch add device name.
Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/ak8975.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/magnetometer/ak8975.c
b/drivers/iio/magnetometer/ak8975.c
index ff284e5afd9587c4e8a14bc9633b018098ce983c..039c3e85caf4213906ba524f56840bce413bb90f 100644
(file)
--- 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);