Lines Matching full:arizona

3  * gpiolib support for Wolfson Arizona class devices
18 #include <linux/mfd/arizona/core.h>
19 #include <linux/mfd/arizona/pdata.h>
20 #include <linux/mfd/arizona/registers.h>
23 struct arizona *arizona; member
30 struct arizona *arizona = arizona_gpio->arizona; in arizona_gpio_direction_in() local
35 ret = regmap_update_bits_check(arizona->regmap, in arizona_gpio_direction_in()
53 struct arizona *arizona = arizona_gpio->arizona; in arizona_gpio_get() local
58 ret = regmap_read(arizona->regmap, reg, &val); in arizona_gpio_get()
72 ret = regcache_drop_region(arizona->regmap, reg, reg); in arizona_gpio_get()
80 ret = regmap_read(arizona->regmap, reg, &val); in arizona_gpio_get()
100 struct arizona *arizona = arizona_gpio->arizona; in arizona_gpio_direction_out() local
105 ret = regmap_read(arizona->regmap, ARIZONA_GPIO1_CTRL + offset, &val); in arizona_gpio_direction_out()
121 return regmap_update_bits(arizona->regmap, ARIZONA_GPIO1_CTRL + offset, in arizona_gpio_direction_out()
128 struct arizona *arizona = arizona_gpio->arizona; in arizona_gpio_set() local
133 regmap_update_bits(arizona->regmap, ARIZONA_GPIO1_CTRL + offset, in arizona_gpio_set()
138 .label = "arizona",
149 struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); in arizona_gpio_probe() local
150 struct arizona_pdata *pdata = &arizona->pdata; in arizona_gpio_probe()
159 arizona_gpio->arizona = arizona; in arizona_gpio_probe()
163 arizona_gpio->gpio_chip.of_node = arizona->dev->of_node; in arizona_gpio_probe()
166 switch (arizona->type) { in arizona_gpio_probe()
181 arizona->type); in arizona_gpio_probe()
205 .driver.name = "arizona-gpio",
212 MODULE_DESCRIPTION("GPIO interface for Arizona devices");
214 MODULE_ALIAS("platform:arizona-gpio");