Lines Matching refs:wm8350_gpio
29 struct wm8350_gpio_data *wm8350_gpio = gpiochip_get_data(chip); in wm8350_gpio_direction_in() local
30 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_direction_in()
38 struct wm8350_gpio_data *wm8350_gpio = gpiochip_get_data(chip); in wm8350_gpio_get() local
39 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()
83 struct wm8350_gpio_data *wm8350_gpio = gpiochip_get_data(chip); in wm8350_gpio_to_irq() local
84 struct wm8350 *wm8350 = wm8350_gpio->wm8350; in wm8350_gpio_to_irq()
107 struct wm8350_gpio_data *wm8350_gpio; in wm8350_gpio_probe() local
110 wm8350_gpio = devm_kzalloc(&pdev->dev, sizeof(*wm8350_gpio), in wm8350_gpio_probe()
112 if (wm8350_gpio == NULL) in wm8350_gpio_probe()
115 wm8350_gpio->wm8350 = wm8350; in wm8350_gpio_probe()
116 wm8350_gpio->gpio_chip = template_chip; in wm8350_gpio_probe()
117 wm8350_gpio->gpio_chip.ngpio = 13; in wm8350_gpio_probe()
118 wm8350_gpio->gpio_chip.parent = &pdev->dev; in wm8350_gpio_probe()
120 wm8350_gpio->gpio_chip.base = pdata->gpio_base; in wm8350_gpio_probe()
122 wm8350_gpio->gpio_chip.base = -1; in wm8350_gpio_probe()
124 ret = devm_gpiochip_add_data(&pdev->dev, &wm8350_gpio->gpio_chip, in wm8350_gpio_probe()
125 wm8350_gpio); in wm8350_gpio_probe()
131 platform_set_drvdata(pdev, wm8350_gpio); in wm8350_gpio_probe()