iio: Simplify iio_map_array_unregister API
authorGuenter Roeck <linux@roeck-us.net>
Thu, 31 Jan 2013 21:43:00 +0000 (21:43 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 2 Feb 2013 12:02:20 +0000 (12:02 +0000)
commit6cb2afd7c0abb93bd9dc6d36b858b1e312e2407d
tree3abec8f4f092e6e594f4ce57069987c5618f67ff
parentca7d98dbd7db6aa8bc4b08e26be1249436d21af3
iio: Simplify iio_map_array_unregister API

Instead of requiring the map to unregister, simply unregister all map entries
associated with the given iio device. This simplifies map removal and also works
for maps generated through devicetree.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/lp8788_adc.c
drivers/iio/adc/max1363.c
drivers/iio/inkern.c
include/linux/iio/driver.h