Re: [PATCH v2] iio: tsl2772: Use device-managed API

2019-07-29 Thread Chuhong Yuan
Brian Masney 于2019年7月29日周一 下午6:59写道: > > Hi Chuhong, > > On Mon, Jul 29, 2019 at 06:03:39PM +0800, Chuhong Yuan wrote: > > Use devm_iio_device_register to simplify > > the code. > > > > Signed-off-by: Chuhong Yuan > > Thank you for the patch. The patch description doesn't match what all is > done

Re: [PATCH v2] iio: tsl2772: Use device-managed API

2019-07-29 Thread Brian Masney
Hi Chuhong, On Mon, Jul 29, 2019 at 06:03:39PM +0800, Chuhong Yuan wrote: > Use devm_iio_device_register to simplify > the code. > > Signed-off-by: Chuhong Yuan Thank you for the patch. The patch description doesn't match what all is done below. This should also be broken up into multiple patch

[PATCH v2] iio: tsl2772: Use device-managed API

2019-07-29 Thread Chuhong Yuan
Use devm_iio_device_register to simplify the code. Signed-off-by: Chuhong Yuan --- Changes in v2: - Use regulator_bulk_() to shrink driver size. - Utilize more devm functions to simplify the code. - Remove several redundant functions. drivers/iio/light/tsl2772.c | 116 +++-