Skip to content
Commit 19868faa authored by Nikolaus Voss's avatar Nikolaus Voss Committed by Jonathan Cameron
Browse files

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: default avatarNikolaus Voss <nikolaus.voss@loewensteinmedical.de>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 7d6cd21d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment