Searched refs:wm8994 (Results 1 – 8 of 8) sorted by relevance
/drivers/mfd/ |
D | wm8994-core.c | 39 int wm8994_reg_read(struct wm8994 *wm8994, unsigned short reg) in wm8994_reg_read() argument 44 ret = regmap_read(wm8994->regmap, reg, &val); in wm8994_reg_read() 61 int wm8994_bulk_read(struct wm8994 *wm8994, unsigned short reg, in wm8994_bulk_read() argument 64 return regmap_bulk_read(wm8994->regmap, reg, buf, count); in wm8994_bulk_read() 74 int wm8994_reg_write(struct wm8994 *wm8994, unsigned short reg, in wm8994_reg_write() argument 77 return regmap_write(wm8994->regmap, reg, val); in wm8994_reg_write() 89 int wm8994_bulk_write(struct wm8994 *wm8994, unsigned short reg, in wm8994_bulk_write() argument 92 return regmap_raw_write(wm8994->regmap, reg, buf, count * sizeof(u16)); in wm8994_bulk_write() 104 int wm8994_set_bits(struct wm8994 *wm8994, unsigned short reg, in wm8994_set_bits() argument 107 return regmap_update_bits(wm8994->regmap, reg, mask, val); in wm8994_set_bits() [all …]
|
D | wm8994-irq.c | 139 int wm8994_irq_init(struct wm8994 *wm8994) in wm8994_irq_init() argument 143 if (!wm8994->irq) { in wm8994_irq_init() 144 dev_warn(wm8994->dev, in wm8994_irq_init() 146 wm8994->irq_base = 0; in wm8994_irq_init() 150 if (!wm8994->irq_base) { in wm8994_irq_init() 151 dev_err(wm8994->dev, in wm8994_irq_init() 156 ret = regmap_add_irq_chip(wm8994->regmap, wm8994->irq, in wm8994_irq_init() 158 wm8994->irq_base, &wm8994_irq_chip, in wm8994_irq_init() 159 &wm8994->irq_data); in wm8994_irq_init() 161 dev_err(wm8994->dev, "Failed to register IRQ chip: %d\n", ret); in wm8994_irq_init() [all …]
|
D | wm8994-regmap.c | 1136 struct wm8994 *wm8994 = dev_get_drvdata(dev); in wm1811_volatile_register() local 1140 if (wm8994->revision > 1) in wm1811_volatile_register()
|
D | Makefile | 36 obj-$(CONFIG_MFD_WM8994) += wm8994-core.o wm8994-irq.o wm8994-regmap.o
|
/drivers/gpio/ |
D | gpio-wm8994.c | 29 struct wm8994 *wm8994; member 41 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_request() local 43 switch (wm8994->type) { in wm8994_gpio_request() 64 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_direction_in() local 66 return wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset, in wm8994_gpio_direction_in() 73 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_get() local 76 ret = wm8994_reg_read(wm8994, WM8994_GPIO_1 + offset); in wm8994_gpio_get() 90 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_direction_out() local 95 return wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset, in wm8994_gpio_direction_out() 102 struct wm8994 *wm8994 = wm8994_gpio->wm8994; in wm8994_gpio_set() local [all …]
|
D | Makefile | 65 obj-$(CONFIG_GPIO_WM8994) += gpio-wm8994.o
|
/drivers/regulator/ |
D | wm8994-regulator.c | 32 struct wm8994 *wm8994; member 94 val = wm8994_reg_read(ldo->wm8994, WM8994_LDO_1); in wm8994_ldo1_get_voltage_sel() 115 return wm8994_set_bits(ldo->wm8994, WM8994_LDO_1, in wm8994_ldo1_set_voltage() 138 switch (ldo->wm8994->type) { in wm8994_ldo2_list_voltage() 161 val = wm8994_reg_read(ldo->wm8994, WM8994_LDO_2); in wm8994_ldo2_get_voltage_sel() 174 switch (ldo->wm8994->type) { in wm8994_ldo2_set_voltage() 197 return wm8994_set_bits(ldo->wm8994, WM8994_LDO_2, in wm8994_ldo2_set_voltage() 233 struct wm8994 *wm8994 = dev_get_drvdata(pdev->dev.parent); in wm8994_ldo_probe() local 234 struct wm8994_pdata *pdata = wm8994->dev->platform_data; in wm8994_ldo_probe() 250 ldo->wm8994 = wm8994; in wm8994_ldo_probe() [all …]
|
D | Makefile | 54 obj-$(CONFIG_REGULATOR_WM8994) += wm8994-regulator.o
|