Re: [PATCH v2] platform/chrome: Use to_cros_ec_dev more broadly

2018-05-30 Thread Benson Leung
Hi Gwendal, On Wed, May 30, 2018 at 09:04:13AM -0700, Gwendal Grignou wrote: > Move to_cros_ec_dev macro to cros_ec.h and use it when the private ec > object is needed from device object. > > Signed-off-by: Gwendal Grignou Applied to platform/chrome for v4.18. FYI, Lee, I'll add the new macro

Re: [PATCH v2] platform/chrome: Use to_cros_ec_dev more broadly

2018-05-30 Thread Enric Balletbo Serra
Hi Gwendal, 2018-05-30 18:04 GMT+02:00 Gwendal Grignou : > Move to_cros_ec_dev macro to cros_ec.h and use it when the private ec > object is needed from device object. > > Signed-off-by: Gwendal Grignou > --- > Change since v1: >Remove changes in cros_ec_dev.c to avoid inter-dependencies. > >

[PATCH v2] platform/chrome: Use to_cros_ec_dev more broadly

2018-05-30 Thread Gwendal Grignou
Move to_cros_ec_dev macro to cros_ec.h and use it when the private ec object is needed from device object. Signed-off-by: Gwendal Grignou --- Change since v1: Remove changes in cros_ec_dev.c to avoid inter-dependencies. drivers/platform/chrome/cros_ec_lightbar.c | 21 +++-- d