projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87a4690
)
staging: iio: hmc5843: Add all available models to device tree id table.
author
Marek Belisko
<marek@goldelico.com>
Fri, 14 Feb 2014 14:25:00 +0000
(14:25 +0000)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 29 Jun 2014 10:56:30 +0000
(11:56 +0100)
Signed-off-by: Marek Belisko <marek@goldelico.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/magnetometer/hmc5843.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/magnetometer/hmc5843.c
b/drivers/staging/iio/magnetometer/hmc5843.c
index d4f4dd90c69908b627f83727f7be11e9123ee1ce..f595fdcc79b0ba57a1016763314b106f6f0e529d 100644
(file)
--- a/
drivers/staging/iio/magnetometer/hmc5843.c
+++ b/
drivers/staging/iio/magnetometer/hmc5843.c
@@
-630,7
+630,9
@@
static const struct i2c_device_id hmc5843_id[] = {
MODULE_DEVICE_TABLE(i2c, hmc5843_id);
static const struct of_device_id hmc5843_of_match[] = {
- { .compatible = "honeywell,hmc5843" },
+ { .compatible = "honeywell,hmc5843", .data = (void *)HMC5843_ID },
+ { .compatible = "honeywell,hmc5883", .data = (void *)HMC5883_ID },
+ { .compatible = "honeywell,hmc5883l", .data = (void *)HMC5883L_ID },
{}
};
MODULE_DEVICE_TABLE(of, hmc5843_of_match);