Re: [PATCH v4 1/2] IIO: st_accel_i2c.c: Simplify access to driver data

2018-07-07 Thread Jonathan Cameron
On Tue, 3 Jul 2018 07:41:00 +0200 Nikolaus Voss wrote: > 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. Remov

[PATCH v4 1/2] IIO: st_accel_i2c.c: Simplify access to driver data

2018-07-05 Thread Nikolaus Voss
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. Reviewed-by: Andy Sh