Linus Walleij
b08ea35a32
gpio: add a data pointer to gpio_chip
...
This adds a void * pointer to gpio_chip so that driver can
assign and retrieve some states. This is done to get rid of
container_of() calls for gpio_chips embedded inside state
containers, so we can remove the need to have the gpio_chip
or later (planned) struct gpio_device be dynamically allocated
at registration time, so that its struct device can be properly
reference counted and not bound to its parent device (e.g.
a platform_device) but instead live on after unregistration
if it is opened by e.g. a char device or sysfs.
The data is added with the new function gpiochip_add_data()
and for compatibility we add static inline wrapper function
gpiochip_add() that will call gpiochip_add_data() with
NULL as argument. The latter will be removed once we have
exorcised gpiochip_add() from the kernel.
gpiochip_get_data() is added as a static inline accessor
for drivers to quickly get their data out.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2016-01-05 11:20:12 +01:00
..
2015-07-06 10:39:24 +02:00
2015-12-10 17:21:02 +01:00
2015-11-17 14:39:17 +01:00
2015-12-22 10:19:49 +01:00
2015-12-10 19:25:21 +01:00
2015-11-30 09:31:00 +01:00
2014-10-20 16:20:31 +02:00
2015-07-28 09:45:39 +02:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-12-21 09:36:21 +01:00
2015-11-19 09:24:35 +01:00
2015-09-16 15:47:51 +02:00
2014-08-29 14:31:43 +02:00
2014-10-20 16:20:31 +02:00
2015-11-19 09:24:35 +01:00
2014-12-14 16:10:09 -08:00
2015-12-26 22:28:06 +01:00
2015-04-08 09:54:21 +02:00
2015-12-26 22:28:06 +01:00
2015-11-19 09:24:35 +01:00
2015-09-16 15:47:51 +02:00
2015-12-26 22:28:07 +01:00
2015-09-16 15:47:51 +02:00
2015-10-02 04:19:31 -07:00
2015-11-30 16:41:26 +01:00
2015-01-29 10:33:15 +01:00
2016-01-05 11:13:28 +01:00
2015-08-17 10:56:24 +02:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:09 +01:00
2014-10-20 16:20:31 +02:00
2015-10-02 04:19:35 -07:00
2015-12-26 22:28:10 +01:00
2015-12-26 22:28:12 +01:00
2014-10-02 16:07:00 +02:00
2015-04-08 09:53:42 +02:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:13 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:14 +01:00
2015-11-30 09:31:00 +01:00
2015-10-28 10:30:17 +09:00
2015-11-19 09:24:35 +01:00
2015-11-30 09:31:00 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:15 +01:00
2015-01-20 11:18:51 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:16 +01:00
2015-12-10 19:28:05 +01:00
2015-12-26 22:28:18 +01:00
2015-11-19 09:24:35 +01:00
2015-10-15 00:21:12 +02:00
2015-09-18 08:11:42 -07:00
2015-11-30 16:41:26 +01:00
2015-12-21 09:36:21 +01:00
2015-12-21 09:36:21 +01:00
2015-12-10 23:57:43 +01:00
2015-12-26 22:28:19 +01:00
2015-12-26 22:28:20 +01:00
2015-12-14 15:01:33 +01:00
2016-01-05 11:19:26 +01:00
2015-11-19 09:24:35 +01:00
2015-12-11 10:11:40 +01:00
2015-12-26 22:28:21 +01:00
2014-09-23 17:51:39 +02:00
2015-11-30 16:41:26 +01:00
2015-11-19 09:24:35 +01:00
2015-10-13 19:01:23 +02:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:23 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:24 +01:00
2015-12-21 09:36:21 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:25 +01:00
2015-11-17 15:18:51 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:27 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:29 +01:00
2015-12-26 22:28:28 +01:00
2015-12-26 22:28:30 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:32 +01:00
2015-11-19 09:24:35 +01:00
2015-01-15 17:23:18 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-06-02 14:52:00 +02:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2014-10-20 16:20:31 +02:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-12-14 14:10:04 +01:00
2015-11-19 09:24:37 +01:00
2015-10-16 22:46:46 +02:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2016-01-05 11:20:12 +01:00
2015-12-11 19:14:35 +01:00
2015-12-10 18:36:51 +01:00
2015-12-01 09:56:36 +01:00