Home
last modified time | relevance | path

Searched refs:wm8994 (Results 1 – 8 of 8) sorted by relevance

/drivers/mfd/
Dwm8994-core.c42 int wm8994_reg_read(struct wm8994 *wm8994, unsigned short reg) in wm8994_reg_read() argument
47 ret = regmap_read(wm8994->regmap, reg, &val); in wm8994_reg_read()
64 int wm8994_bulk_read(struct wm8994 *wm8994, unsigned short reg, in wm8994_bulk_read() argument
67 return regmap_bulk_read(wm8994->regmap, reg, buf, count); in wm8994_bulk_read()
77 int wm8994_reg_write(struct wm8994 *wm8994, unsigned short reg, in wm8994_reg_write() argument
80 return regmap_write(wm8994->regmap, reg, val); in wm8994_reg_write()
92 int wm8994_bulk_write(struct wm8994 *wm8994, unsigned short reg, in wm8994_bulk_write() argument
95 return regmap_raw_write(wm8994->regmap, reg, buf, count * sizeof(u16)); in wm8994_bulk_write()
107 int wm8994_set_bits(struct wm8994 *wm8994, unsigned short reg, in wm8994_set_bits() argument
110 return regmap_update_bits(wm8994->regmap, reg, mask, val); in wm8994_set_bits()
[all …]
Dwm8994-irq.c141 int wm8994_irq_init(struct wm8994 *wm8994) in wm8994_irq_init() argument
145 struct wm8994_pdata *pdata = wm8994->dev->platform_data; in wm8994_irq_init()
147 if (!wm8994->irq) { in wm8994_irq_init()
148 dev_warn(wm8994->dev, in wm8994_irq_init()
150 wm8994->irq_base = 0; in wm8994_irq_init()
159 ret = regmap_add_irq_chip(wm8994->regmap, wm8994->irq, in wm8994_irq_init()
161 wm8994->irq_base, &wm8994_irq_chip, in wm8994_irq_init()
162 &wm8994->irq_data); in wm8994_irq_init()
164 dev_err(wm8994->dev, "Failed to register IRQ chip: %d\n", ret); in wm8994_irq_init()
169 wm8994_reg_write(wm8994, WM8994_INTERRUPT_CONTROL, 0); in wm8994_irq_init()
[all …]
Dwm8994-regmap.c1135 struct wm8994 *wm8994 = dev_get_drvdata(dev); in wm1811_volatile_register() local
1139 if (wm8994->cust_id > 1 || wm8994->revision > 1) in wm1811_volatile_register()
DMakefile56 obj-$(CONFIG_MFD_WM8994) += wm8994-core.o wm8994-irq.o wm8994-regmap.o
/drivers/gpio/
Dgpio-wm8994.c30 struct wm8994 *wm8994; member
42 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_request() local
44 switch (wm8994->type) { in wm8994_gpio_request()
65 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_direction_in() local
67 return wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset, in wm8994_gpio_direction_in()
74 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_get() local
77 ret = wm8994_reg_read(wm8994, WM8994_GPIO_1 + offset); in wm8994_gpio_get()
91 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_direction_out() local
96 return wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset, in wm8994_gpio_direction_out()
103 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_set() local
[all …]
DMakefile88 obj-$(CONFIG_GPIO_WM8994) += gpio-wm8994.o
/drivers/regulator/
Dwm8994-regulator.c31 struct wm8994 *wm8994; member
54 switch (ldo->wm8994->type) { in wm8994_ldo2_list_voltage()
127 struct wm8994 *wm8994 = dev_get_drvdata(pdev->dev.parent); in wm8994_ldo_probe() local
128 struct wm8994_pdata *pdata = wm8994->dev->platform_data; in wm8994_ldo_probe()
142 ldo->wm8994 = wm8994; in wm8994_ldo_probe()
144 ldo->supply.dev_name = dev_name(wm8994->dev); in wm8994_ldo_probe()
146 config.dev = wm8994->dev; in wm8994_ldo_probe()
148 config.regmap = wm8994->regmap; in wm8994_ldo_probe()
152 else if (wm8994->dev->of_node) in wm8994_ldo_probe()
153 config.ena_gpio = wm8994->pdata.ldo[id].enable; in wm8994_ldo_probe()
[all …]
DMakefile72 obj-$(CONFIG_REGULATOR_WM8994) += wm8994-regulator.o