Re: [PATCH v4 2/4] iio: tsl2772: Use devm_add_action_or_reset for tsl2772_chip_off

2019-08-05 Thread Jonathan Cameron
On Thu, 1 Aug 2019 05:35:26 -0400 Brian Masney wrote: > On Thu, Aug 01, 2019 at 03:36:05PM +0800, Chuhong Yuan wrote: > > Use devm_add_action_or_reset to call tsl2772_chip_off > > when the device is removed. > > This also fixes the issue that the chip is turned off > > before the device is

Re: [PATCH v4 2/4] iio: tsl2772: Use devm_add_action_or_reset for tsl2772_chip_off

2019-08-01 Thread Brian Masney
On Thu, Aug 01, 2019 at 03:36:05PM +0800, Chuhong Yuan wrote: > Use devm_add_action_or_reset to call tsl2772_chip_off > when the device is removed. > This also fixes the issue that the chip is turned off > before the device is unregistered. > > Fixes: 4e24c1719f34 ("staging: iio: tsl2x7x: rename

[PATCH v4 2/4] iio: tsl2772: Use devm_add_action_or_reset for tsl2772_chip_off

2019-08-01 Thread Chuhong Yuan
Use devm_add_action_or_reset to call tsl2772_chip_off when the device is removed. This also fixes the issue that the chip is turned off before the device is unregistered. Fixes: 4e24c1719f34 ("staging: iio: tsl2x7x: rename driver to tsl2772") Signed-off-by: Chuhong Yuan --- Changes in v4: -