diff options
author | Nikolaus Voss <nikolaus.voss@loewensteinmedical.de> | 2018-07-03 07:41:00 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-07-07 18:32:51 +0200 |
commit | 19868faad4c59646a9fbebc34c3bf07733db341e (patch) | |
tree | 851b999cdee6647f757fc655d796c126fbf3ab13 /drivers/iio/accel/mma9551.c | |
parent | iio: adc: ina2xx: avoid kthread_stop() with stale task_struct (diff) | |
download | linux-19868faad4c59646a9fbebc34c3bf07733db341e.tar.xz linux-19868faad4c59646a9fbebc34c3bf07733db341e.zip |
IIO: st_accel_i2c.c: Simplify access to driver data
Use device_get_match_data API to simplify access to driver data.
Let acpi_device_id table entries point to the same driver data as
of_device_id table entries and uniquify access to driver data by using
device_get_match_data API. Remove unused i2c_device_id .driver_data
fields.
Signed-off-by: Nikolaus Voss <nikolaus.voss@loewensteinmedical.de>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel/mma9551.c')
0 files changed, 0 insertions, 0 deletions