summaryrefslogtreecommitdiff
path: root/drivers/iio/humidity/hts221_i2c.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-03-13 13:49:54 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-03-21 13:27:05 +0300
commit92c3e93b7d2d8d9505f295d2caff58b91b407fa2 (patch)
treee1ec0a4c0ef339356c29684dc84ce4e401ae8602 /drivers/iio/humidity/hts221_i2c.c
parent4d8d2f09ad9fec7dcc1298541b0b12bd5dadf319 (diff)
downloadlinux-92c3e93b7d2d8d9505f295d2caff58b91b407fa2.tar.xz
iio: humidity: hts221: Make use of device properties
Device property API allows to gather device resources from different sources, such as ACPI. Convert the drivers to unleash the power of device property API. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/humidity/hts221_i2c.c')
-rw-r--r--drivers/iio/humidity/hts221_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/humidity/hts221_i2c.c b/drivers/iio/humidity/hts221_i2c.c
index 4272b7030c44..1398794e4bc7 100644
--- a/drivers/iio/humidity/hts221_i2c.c
+++ b/drivers/iio/humidity/hts221_i2c.c
@@ -63,7 +63,7 @@ static struct i2c_driver hts221_driver = {
.driver = {
.name = "hts221_i2c",
.pm = &hts221_pm_ops,
- .of_match_table = of_match_ptr(hts221_i2c_of_match),
+ .of_match_table = hts221_i2c_of_match,
.acpi_match_table = ACPI_PTR(hts221_acpi_match),
},
.probe = hts221_i2c_probe,