iio: light: al3320a implement devm_add_action_or_reset
authorDavid Heidelberg <david@ixit.cz>
Tue, 11 Feb 2020 19:12:00 +0000 (20:12 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 8 Mar 2020 17:28:35 +0000 (17:28 +0000)
commit3a271275fa747bafc931ddd872e51d0f3cb15828
treecdd331062eda841652352e43a42cca79992a102f
parentc39a05e35263a2c8abea81df40b42aef33d1a759
iio: light: al3320a implement devm_add_action_or_reset

Use devm_add_action_or_reset to automatically disable the device
and allow you to get rid of the remove function entirely.

Signed-off-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/al3320a.c