Lines Matching refs:wm831x_gpio
28 struct wm831x_gpio {
33 static inline struct wm831x_gpio *to_wm831x_gpio(struct gpio_chip *chip)
35 return container_of(chip, struct wm831x_gpio, gpio_chip);
40 struct wm831x_gpio *wm831x_gpio = to_wm831x_gpio(chip);
41 struct wm831x *wm831x = wm831x_gpio->wm831x;
54 struct wm831x_gpio *wm831x_gpio = to_wm831x_gpio(chip);
55 struct wm831x *wm831x = wm831x_gpio->wm831x;
70 struct wm831x_gpio *wm831x_gpio = to_wm831x_gpio(chip);
71 struct wm831x *wm831x = wm831x_gpio->wm831x;
80 struct wm831x_gpio *wm831x_gpio = to_wm831x_gpio(chip);
81 struct wm831x *wm831x = wm831x_gpio->wm831x;
102 struct wm831x_gpio *wm831x_gpio = to_wm831x_gpio(chip);
103 struct wm831x *wm831x = wm831x_gpio->wm831x;
114 struct wm831x_gpio *wm831x_gpio = to_wm831x_gpio(chip);
115 struct wm831x *wm831x = wm831x_gpio->wm831x;
145 struct wm831x_gpio *wm831x_gpio = to_wm831x_gpio(chip);
146 struct wm831x *wm831x = wm831x_gpio->wm831x;
251 struct wm831x_gpio *wm831x_gpio;
254 wm831x_gpio = kzalloc(sizeof(*wm831x_gpio), GFP_KERNEL);
255 if (wm831x_gpio == NULL)
258 wm831x_gpio->wm831x = wm831x;
259 wm831x_gpio->gpio_chip = template_chip;
260 wm831x_gpio->gpio_chip.ngpio = wm831x->num_gpio;
261 wm831x_gpio->gpio_chip.dev = &pdev->dev;
263 wm831x_gpio->gpio_chip.base = pdata->gpio_base;
265 wm831x_gpio->gpio_chip.base = -1;
267 ret = gpiochip_add(&wm831x_gpio->gpio_chip);
274 platform_set_drvdata(pdev, wm831x_gpio);
279 kfree(wm831x_gpio);
285 struct wm831x_gpio *wm831x_gpio = platform_get_drvdata(pdev);
288 ret = gpiochip_remove(&wm831x_gpio->gpio_chip);
290 kfree(wm831x_gpio);