Re: [PATCH v2] iio: light: si1145: Use device-managed APIs

2019-08-05 Thread Jonathan Cameron
On Mon, 29 Jul 2019 09:43:01 +0800 Chuhong Yuan wrote: > Use device-managed APIs to simplify the code. > The remove functions are redundant now and can > be deleted. > > Signed-off-by: Chuhong Yuan Nice little patch, thanks! Applied to the togreg branch of iio.git and pushed out as testing

[PATCH v2] iio: light: si1145: Use device-managed APIs

2019-07-28 Thread Chuhong Yuan
Use device-managed APIs to simplify the code. The remove functions are redundant now and can be deleted. Signed-off-by: Chuhong Yuan --- Changes in v2: - Split v1 into two patches. - Use devm_iio_trigger_register in probe_trigger, delete redundant remove_trigger. - Return