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

2018-07-05 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 8:41 AM, 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 usi

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

2018-07-04 Thread Andy Shevchenko
On Tue, Jul 3, 2018 at 8:41 AM, 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. Remove u

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

2018-07-04 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. Signed-off-by: Nikol