Shobhit Kumar
be9015abb8
gpiolib: Add support for removing registered consumer lookup table
...
In case we unload and load a driver module again that is registering a
lookup table, without this it will result in multiple entries. Provide
an option to remove the lookup table on driver unload
Cc: Samuel Ortiz <sameo@linux.intel.com >
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Alexandre Courbot <gnurou@gmail.com >
Cc: Thierry Reding <thierry.reding@gmail.com >
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Tested-by: Ville Syrjälä <ville.syrjala@linux.intel.com >
Signed-off-by: Shobhit Kumar <shobhit.kumar@intel.com >
Acked-by: Lee Jones <lee.jones@linaro.org >
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2015-07-21 09:21:40 +02:00
Alexandre Courbot
b3ea074fd3
gpio: add missing includes in machine.h
...
linux/types.h and linux/list.h should be included so the typed used in
the header file are always properly declared.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au >
Reported-by: Thierry Reding <treding@nvidia.com >
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com >
Signed-off-by: Linus Walleij <linus.walleij@linaro.org >
2014-08-07 11:54:51 +02:00
Linus Walleij
0a6d315827
gpio: split gpiod board registration into machine header
...
As per example from the regulator subsystem: put all defines and
functions related to registering board info for GPIO descriptors
into a separate <linux/gpio/machine.h> header.
Cc: Andrew Victor <linux@maxim.org.za >
Cc: Nicolas Ferre <nicolas.ferre@atmel.com >
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com >
Cc: Ralf Baechle <ralf@linux-mips.org >
Cc: Thierry Reding <thierry.reding@gmail.com >
Acked-by: Stephen Warren <swarren@wwwdotorg.org >
Reviewed-by: Alexandre Courbot <gnurou@gmail.com >
Signed-off-by: Linus Walleij <linus.walleij@linaro.org >
2014-07-28 12:23:35 +02:00