Lines Matching defs:wm8994
2 * wm8994-gpio.c -- gpiolib support for Wolfson WM8994
23 #include <linux/mfd/wm8994/core.h>
24 #include <linux/mfd/wm8994/pdata.h>
25 #include <linux/mfd/wm8994/gpio.h>
26 #include <linux/mfd/wm8994/registers.h>
29 struct wm8994 *wm8994;
41 struct wm8994 *wm8994 = wm8994_gpio->wm8994;
43 return wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset,
50 struct wm8994 *wm8994 = wm8994_gpio->wm8994;
53 ret = wm8994_reg_read(wm8994, WM8994_GPIO_1 + offset);
67 struct wm8994 *wm8994 = wm8994_gpio->wm8994;
69 return wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset,
76 struct wm8994 *wm8994 = wm8994_gpio->wm8994;
81 wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset, WM8994_GPN_LVL, value);
87 struct wm8994 *wm8994 = wm8994_gpio->wm8994;
89 if (!wm8994->irq_base)
92 return wm8994->irq_base + offset;
100 struct wm8994 *wm8994 = wm8994_gpio->wm8994;
119 reg = wm8994_reg_read(wm8994, WM8994_GPIO_1 + i);
121 dev_err(wm8994->dev,
137 .label = "wm8994",
149 struct wm8994 *wm8994 = dev_get_drvdata(pdev->dev.parent);
150 struct wm8994_pdata *pdata = wm8994->dev->platform_data;
158 wm8994_gpio->wm8994 = wm8994;
196 .driver.name = "wm8994-gpio",
217 MODULE_ALIAS("platform:wm8994-gpio");