mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
iio: trigger: implement devm_iio_trigger_alloc/devm_iio_triger_free
Add a resource managed devm_iio_trigger_alloc()/devm_iio_triger_free() to automatically clean up triggers allocated by IIO drivers, thus leading to simplified IIO drivers code. Signed-off-by: Jacek Anaszewski <[email protected]> Signed-off-by: Kyunmin Park <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
This commit is contained in:
parent
1696f36482
commit
d536321df3
3 changed files with 99 additions and 4 deletions
|
|
@ -240,6 +240,8 @@ MEM
|
|||
IIO
|
||||
devm_iio_device_alloc()
|
||||
devm_iio_device_free()
|
||||
devm_iio_trigger_alloc()
|
||||
devm_iio_trigger_free()
|
||||
|
||||
IO region
|
||||
devm_request_region()
|
||||
|
|
|
|||
Loading…
Reference in a new issue