diff options
author | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2017-06-13 11:52:22 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-07-01 05:16:42 -0400 |
commit | 55eaac2b9980a8a24f0f7ad6dde8a48e1795fbd9 (patch) | |
tree | 1a9e96fb7df6a855658efc6c3b408c215c197565 | |
parent | 5e1a1da0f8c9142902a97fe48b008860f5c7a305 (diff) |
iio: temperature: tsys01: Add OF match table
Add of_match_table for Measurement Specialties TSYS01 temperature sensor
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/iio/temperature/tsys01.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/iio/temperature/tsys01.c b/drivers/iio/temperature/tsys01.c index 3e60c6189d98..d8aa211d76e4 100644 --- a/drivers/iio/temperature/tsys01.c +++ b/drivers/iio/temperature/tsys01.c | |||
@@ -214,11 +214,18 @@ static const struct i2c_device_id tsys01_id[] = { | |||
214 | }; | 214 | }; |
215 | MODULE_DEVICE_TABLE(i2c, tsys01_id); | 215 | MODULE_DEVICE_TABLE(i2c, tsys01_id); |
216 | 216 | ||
217 | static const struct of_device_id tsys01_of_match[] = { | ||
218 | { .compatible = "meas,tsys01", }, | ||
219 | { }, | ||
220 | }; | ||
221 | MODULE_DEVICE_TABLE(of, tsys01_of_match); | ||
222 | |||
217 | static struct i2c_driver tsys01_driver = { | 223 | static struct i2c_driver tsys01_driver = { |
218 | .probe = tsys01_i2c_probe, | 224 | .probe = tsys01_i2c_probe, |
219 | .id_table = tsys01_id, | 225 | .id_table = tsys01_id, |
220 | .driver = { | 226 | .driver = { |
221 | .name = "tsys01", | 227 | .name = "tsys01", |
228 | .of_match_table = of_match_ptr(tsys01_of_match), | ||
222 | }, | 229 | }, |
223 | }; | 230 | }; |
224 | 231 | ||