mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
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>
This commit is contained in:
parent
c39a05e352
commit
3a271275fa
1 changed files with 14 additions and 6 deletions
Loading…
Add table
Add a link
Reference in a new issue