Lines Matching refs:wm831x_gpio
28 struct wm831x_gpio { struct
33 static inline struct wm831x_gpio *to_wm831x_gpio(struct gpio_chip *chip) in to_wm831x_gpio() argument
35 return container_of(chip, struct wm831x_gpio, gpio_chip); in to_wm831x_gpio()
40 struct wm831x_gpio *wm831x_gpio = to_wm831x_gpio(chip); in wm831x_gpio_direction_in() local
41 struct wm831x *wm831x = wm831x_gpio->wm831x; in wm831x_gpio_direction_in()
54 struct wm831x_gpio *wm831x_gpio = to_wm831x_gpio(chip); in wm831x_gpio_get() local
55 struct wm831x *wm831x = wm831x_gpio->wm831x; in wm831x_gpio_get()
70 struct wm831x_gpio *wm831x_gpio = to_wm831x_gpio(chip); in wm831x_gpio_set() local
71 struct wm831x *wm831x = wm831x_gpio->wm831x; in wm831x_gpio_set()
80 struct wm831x_gpio *wm831x_gpio = to_wm831x_gpio(chip); in wm831x_gpio_direction_out() local
81 struct wm831x *wm831x = wm831x_gpio->wm831x; in wm831x_gpio_direction_out()
102 struct wm831x_gpio *wm831x_gpio = to_wm831x_gpio(chip); in wm831x_gpio_to_irq() local
103 struct wm831x *wm831x = wm831x_gpio->wm831x; in wm831x_gpio_to_irq()
114 struct wm831x_gpio *wm831x_gpio = to_wm831x_gpio(chip); in wm831x_gpio_set_debounce() local
115 struct wm831x *wm831x = wm831x_gpio->wm831x; in wm831x_gpio_set_debounce()
145 struct wm831x_gpio *wm831x_gpio = to_wm831x_gpio(chip); in wm831x_gpio_dbg_show() local
146 struct wm831x *wm831x = wm831x_gpio->wm831x; in wm831x_gpio_dbg_show()
252 struct wm831x_gpio *wm831x_gpio; in wm831x_gpio_probe() local
255 wm831x_gpio = kzalloc(sizeof(*wm831x_gpio), GFP_KERNEL); in wm831x_gpio_probe()
256 if (wm831x_gpio == NULL) in wm831x_gpio_probe()
259 wm831x_gpio->wm831x = wm831x; in wm831x_gpio_probe()
260 wm831x_gpio->gpio_chip = template_chip; in wm831x_gpio_probe()
261 wm831x_gpio->gpio_chip.ngpio = wm831x->num_gpio; in wm831x_gpio_probe()
262 wm831x_gpio->gpio_chip.dev = &pdev->dev; in wm831x_gpio_probe()
264 wm831x_gpio->gpio_chip.base = pdata->gpio_base; in wm831x_gpio_probe()
266 wm831x_gpio->gpio_chip.base = -1; in wm831x_gpio_probe()
268 ret = gpiochip_add(&wm831x_gpio->gpio_chip); in wm831x_gpio_probe()
275 platform_set_drvdata(pdev, wm831x_gpio); in wm831x_gpio_probe()
280 kfree(wm831x_gpio); in wm831x_gpio_probe()
286 struct wm831x_gpio *wm831x_gpio = platform_get_drvdata(pdev); in wm831x_gpio_remove() local
289 ret = gpiochip_remove(&wm831x_gpio->gpio_chip); in wm831x_gpio_remove()
291 kfree(wm831x_gpio); in wm831x_gpio_remove()