diff options
author | NeilBrown <neilb@suse.de> | 2013-11-01 05:35:00 +0000 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-11-24 21:07:15 +0000 |
commit | 27b832427e060d4e963c610d07860e5dbe1daafa (patch) | |
tree | 66fa105a1df489da2c9d6216b510961e726626cc /drivers | |
parent | 8175bff5b47eae171a393f5bd67673de50630973 (diff) | |
download | linux-stable-27b832427e060d4e963c610d07860e5dbe1daafa.tar.gz linux-stable-27b832427e060d4e963c610d07860e5dbe1daafa.tar.bz2 linux-stable-27b832427e060d4e963c610d07860e5dbe1daafa.zip |
iio:magnetometer:hmc5843 - add basic dt support
Compatible string, documenation and an optional gpio
for the dataready pin.
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/iio/magnetometer/hmc5843.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/iio/magnetometer/hmc5843.c b/drivers/staging/iio/magnetometer/hmc5843.c index 99421f90d189..bdb018878296 100644 --- a/drivers/staging/iio/magnetometer/hmc5843.c +++ b/drivers/staging/iio/magnetometer/hmc5843.c @@ -624,10 +624,17 @@ 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" }, + {} +}; +MODULE_DEVICE_TABLE(of, hmc5843_of_match); + static struct i2c_driver hmc5843_driver = { .driver = { .name = "hmc5843", .pm = HMC5843_PM_OPS, + .of_match_table = of_match_ptr(hmc5843_of_match), }, .id_table = hmc5843_id, .probe = hmc5843_probe, |