2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 06:04:14 +08:00
linux-next/Documentation/driver-api/driver-model
Alexandru Ardelean 25c02edfd4 iio: inkern: introduce devm_iio_map_array_register() short-hand function
This change introduces a device-managed variant to the
iio_map_array_register() function. It's a simple implementation of calling
iio_map_array_register() and registering a callback to
iio_map_array_unregister() with the devm_add_action_or_reset().

The function uses an explicit 'dev' parameter to bind the unwinding to. It
could have been implemented to implicitly use the parent of the IIO device,
however it shouldn't be too expensive to callers to just specify to which
device object to bind this unwind call.
It would make the API a bit more flexible.

Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210903072917.45769-2-aardelean@deviqon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2021-10-19 08:27:34 +01:00
..
binding.rst docs: driver-model: move it to the driver-api book 2019-07-15 11:03:02 -03:00
bus.rst docs: driver-model: move it to the driver-api book 2019-07-15 11:03:02 -03:00
design-patterns.rst docs: driver-model: move it to the driver-api book 2019-07-15 11:03:02 -03:00
device.rst docs: driver-model: device: Add ATTRIBUTE_GROUPS() example 2021-03-08 17:06:56 -07:00
devres.rst iio: inkern: introduce devm_iio_map_array_register() short-hand function 2021-10-19 08:27:34 +01:00
driver.rst docs: driver-model: remove a duplicated markup at driver.rst 2020-06-26 10:01:24 -06:00
index.rst docs: driver-model: Remove obsolete device class documentation 2021-03-06 17:36:51 -07:00
overview.rst docs: filesystems: fix renamed references 2020-04-20 15:45:22 -06:00
platform.rst Documentation/driver-api: driver-model/platform: drop doubled word 2020-07-10 14:35:37 +02:00
porting.rst docs: driver-model: move it to the driver-api book 2019-07-15 11:03:02 -03:00