summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Belisko <marek@goldelico.com>2014-02-14 14:25:00 +0000
committerJonathan Cameron <jic23@kernel.org>2014-06-29 11:56:30 +0100
commitaf690ce9d7c09877460e818e28a48a84b0f75258 (patch)
tree448a71bd99fc7a2ec5d273359cb0586a069a3366
parent87a46909b36ad191352bfb7ac596d2c9c6901ef5 (diff)
staging: iio: hmc5843: Add all available models to device tree id table.
Signed-off-by: Marek Belisko <marek@goldelico.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r--drivers/staging/iio/magnetometer/hmc5843.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/iio/magnetometer/hmc5843.c b/drivers/staging/iio/magnetometer/hmc5843.c
index d4f4dd90c699..f595fdcc79b0 100644
--- 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);