• Home
  • Raw
  • Download

Lines Matching full:wm8994

2  * gpiolib support for Wolfson WM8994
24 #include <linux/mfd/wm8994/core.h>
25 #include <linux/mfd/wm8994/pdata.h>
26 #include <linux/mfd/wm8994/gpio.h>
27 #include <linux/mfd/wm8994/registers.h>
30 struct wm8994 *wm8994; member
37 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_request() local
39 switch (wm8994->type) { in wm8994_gpio_request()
60 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_direction_in() local
62 return wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset, in wm8994_gpio_direction_in()
69 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_get() local
72 ret = wm8994_reg_read(wm8994, WM8994_GPIO_1 + offset); in wm8994_gpio_get()
86 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_direction_out() local
91 return wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset, in wm8994_gpio_direction_out()
98 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_set() local
103 wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset, WM8994_GPN_LVL, value); in wm8994_gpio_set()
110 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_set_config() local
114 return wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset, in wm8994_gpio_set_config()
118 return wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset, in wm8994_gpio_set_config()
130 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_to_irq() local
132 return regmap_irq_get_virq(wm8994->irq_data, offset); in wm8994_gpio_to_irq()
194 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_dbg_show() local
213 reg = wm8994_reg_read(wm8994, WM8994_GPIO_1 + i); in wm8994_gpio_dbg_show()
215 dev_err(wm8994->dev, in wm8994_gpio_dbg_show()
252 .label = "wm8994",
267 struct wm8994 *wm8994 = dev_get_drvdata(pdev->dev.parent); in wm8994_gpio_probe() local
268 struct wm8994_pdata *pdata = dev_get_platdata(wm8994->dev); in wm8994_gpio_probe()
277 wm8994_gpio->wm8994 = wm8994; in wm8994_gpio_probe()
300 .driver.name = "wm8994-gpio",
317 MODULE_DESCRIPTION("GPIO interface for WM8994");
319 MODULE_ALIAS("platform:wm8994-gpio");