summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2023-05-01 11:05:21 +0200
committerLinus Walleij <linus.walleij@linaro.org>2023-05-24 15:01:55 +0200
commitd5f4fa60d63aa54ae33339895b88d8932b6037ed (patch)
tree2212145423b10cbaf8a326e25bb8f1ae43b96aa7 /include/linux/mfd
parentc729baa8604226a8f878296bd145ab4046c80b12 (diff)
downloadlinux-stable-d5f4fa60d63aa54ae33339895b88d8932b6037ed.tar.gz
linux-stable-d5f4fa60d63aa54ae33339895b88d8932b6037ed.tar.bz2
linux-stable-d5f4fa60d63aa54ae33339895b88d8932b6037ed.zip
ARM/gpio: Push OMAP2 quirk down into TWL4030 driver
The TWL4030 GPIO driver has a custom platform data .set_up() callback to call back into the platform and do misc stuff such as hog and export a GPIO for WLAN PWR on a specific OMAP3 board. Avoid all the kludgery in the platform data and the boardfile and just put the quirks right into the driver. Make it conditional on OMAP3. I think the exported GPIO is used by some kind of userspace so ordinary DTS hogs will probably not work. Fixes: 92bf78b33b0b ("gpio: omap: use dynamic allocation of base") Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/twl.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/mfd/twl.h b/include/linux/mfd/twl.h
index 6e3d99b7a0ee..c062d91a67d9 100644
--- a/include/linux/mfd/twl.h
+++ b/include/linux/mfd/twl.h
@@ -593,9 +593,6 @@ struct twl4030_gpio_platform_data {
*/
u32 pullups;
u32 pulldowns;
-
- int (*setup)(struct device *dev,
- unsigned gpio, unsigned ngpio);
};
struct twl4030_madc_platform_data {