iio: Simplify iio_map_array_unregister API
authorGuenter Roeck <linux@roeck-us.net>
Thu, 31 Jan 2013 21:43:00 +0000 (21:43 +0000)
committerAjay Nandakumar <anandakumarm@nvidia.com>
Thu, 3 Oct 2013 13:47:45 +0000 (18:47 +0530)
commit1d21be4b36cb71ab34b94a6bbed0871987240a42
tree275d99d7c9a14b9990ff4cf17bcfdb50c5aa907d
parent8b6f2b8b513fb3ec296d0757394c1babe34d5468
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>
(cherry picked from commit 6cb2afd7c0abb93bd9dc6d36b858b1e312e2407d)

ldewangan:
- Fix compilation issue with palams gpadc driver.

Change-Id: Id88f13b2a59dfd49cbfe44abd4e8abf13988f31c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/279836
GVS: Gerrit_Virtual_Submit
(cherry picked from commit a5949325ff0cd2b558e51ae87a4f95e577b11876)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
drivers/staging/iio/adc/palmas_gpadc.c