Re: [PATCH v3 2/8] iio: common: cros_ec_sensors: move channels to core structure

2019-06-22 Thread Jonathan Cameron
On Tue, 18 Jun 2019 11:06:33 +0200 Fabien Lahoudere wrote: > To avoid code duplication, we move channels initialization in > cros_ec_sensors_core. > > Signed-off-by: Fabien Lahoudere Hi Fabien, In of itself a fairly minor gain in code sharing and at some slight cost in readability. Still on ba

[PATCH v3 2/8] iio: common: cros_ec_sensors: move channels to core structure

2019-06-18 Thread Fabien Lahoudere
To avoid code duplication, we move channels initialization in cros_ec_sensors_core. Signed-off-by: Fabien Lahoudere --- .../common/cros_ec_sensors/cros_ec_sensors.c | 49 ++- .../cros_ec_sensors/cros_ec_sensors_core.c| 25 +- drivers/iio/light/cros_ec_light_prox.c