Lines Matching refs:wm8350_gpio
28 struct wm8350_gpio_data *wm8350_gpio = gpiochip_get_data(chip); in wm8350_gpio_direction_in() local
29 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_direction_in()
37 struct wm8350_gpio_data *wm8350_gpio = gpiochip_get_data(chip); in wm8350_gpio_get() local
38 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_get()
54 struct wm8350_gpio_data *wm8350_gpio = gpiochip_get_data(chip); in wm8350_gpio_set() local
55 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_set()
66 struct wm8350_gpio_data *wm8350_gpio = gpiochip_get_data(chip); in wm8350_gpio_direction_out() local
67 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_direction_out()
81 struct wm8350_gpio_data *wm8350_gpio = gpiochip_get_data(chip); in wm8350_gpio_to_irq() local
82 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_to_irq()
105 struct wm8350_gpio_data *wm8350_gpio; in wm8350_gpio_probe() local
107 wm8350_gpio = devm_kzalloc(&pdev->dev, sizeof(*wm8350_gpio), in wm8350_gpio_probe()
109 if (wm8350_gpio == NULL) in wm8350_gpio_probe()
112 wm8350_gpio->wm8350 = wm8350; in wm8350_gpio_probe()
113 wm8350_gpio->gpio_chip = template_chip; in wm8350_gpio_probe()
114 wm8350_gpio->gpio_chip.ngpio = 13; in wm8350_gpio_probe()
115 wm8350_gpio->gpio_chip.parent = &pdev->dev; in wm8350_gpio_probe()
117 wm8350_gpio->gpio_chip.base = pdata->gpio_base; in wm8350_gpio_probe()
119 wm8350_gpio->gpio_chip.base = -1; in wm8350_gpio_probe()
121 return devm_gpiochip_add_data(&pdev->dev, &wm8350_gpio->gpio_chip, wm8350_gpio); in wm8350_gpio_probe()