/drivers/mfd/ |
H A D | wm831x-i2c.c | 2 * wm831x-i2c.c -- I2C access for Wolfson WM831x PMICs 24 #include <linux/mfd/wm831x/core.h> 25 #include <linux/mfd/wm831x/pdata.h> 30 struct wm831x *wm831x; local 33 wm831x = devm_kzalloc(&i2c->dev, sizeof(struct wm831x), GFP_KERNEL); 34 if (wm831x == NULL) 37 i2c_set_clientdata(i2c, wm831x); 38 wm831x 53 struct wm831x *wm831x = i2c_get_clientdata(i2c); local 62 struct wm831x *wm831x = dev_get_drvdata(dev); local 69 struct wm831x *wm831x = dev_get_drvdata(dev); local [all...] |
H A D | wm831x-auxadc.c | 2 * wm831x-auxadc.c -- AUXADC for Wolfson WM831x PMICs 22 #include <linux/mfd/wm831x/core.h> 23 #include <linux/mfd/wm831x/pdata.h> 24 #include <linux/mfd/wm831x/irq.h> 25 #include <linux/mfd/wm831x/auxadc.h> 26 #include <linux/mfd/wm831x/otp.h> 27 #include <linux/mfd/wm831x/regulator.h> 36 static int wm831x_auxadc_read_irq(struct wm831x *wm831x, argument 51 mutex_lock(&wm831x 115 struct wm831x *wm831x = irq_data; local 158 wm831x_auxadc_read_polled(struct wm831x *wm831x, enum wm831x_auxadc input) argument 250 wm831x_auxadc_read(struct wm831x *wm831x, enum wm831x_auxadc input) argument 262 wm831x_auxadc_read_uv(struct wm831x *wm831x, enum wm831x_auxadc input) argument 276 wm831x_auxadc_init(struct wm831x *wm831x) argument [all...] |
H A D | wm831x-spi.c | 2 * wm831x-spi.c -- SPI access for Wolfson WM831x PMICs 22 #include <linux/mfd/wm831x/core.h> 27 struct wm831x *wm831x; local 33 wm831x = devm_kzalloc(&spi->dev, sizeof(struct wm831x), GFP_KERNEL); 34 if (wm831x == NULL) 39 spi_set_drvdata(spi, wm831x); 40 wm831x->dev = &spi->dev; 42 wm831x 55 struct wm831x *wm831x = spi_get_drvdata(spi); local 64 struct wm831x *wm831x = dev_get_drvdata(dev); local 71 struct wm831x *wm831x = dev_get_drvdata(dev); local [all...] |
H A D | wm831x-otp.c | 2 * wm831x-otp.c -- OTP for Wolfson WM831x PMICs 23 #include <linux/mfd/wm831x/core.h> 24 #include <linux/mfd/wm831x/otp.h> 30 static int wm831x_unique_id_read(struct wm831x *wm831x, char *id) argument 35 val = wm831x_reg_read(wm831x, WM831X_UNIQUE_ID_1 + i); 49 struct wm831x *wm831x = dev_get_drvdata(dev); local 54 rval = wm831x_unique_id_read(wm831x, id); 68 int wm831x_otp_init(struct wm831x *wm831 argument 87 wm831x_otp_exit(struct wm831x *wm831x) argument [all...] |
H A D | wm831x-irq.c | 2 * wm831x-irq.c -- Interrupt controller support for Wolfson WM831x PMICs 23 #include <linux/mfd/wm831x/core.h> 24 #include <linux/mfd/wm831x/pdata.h> 25 #include <linux/mfd/wm831x/gpio.h> 26 #include <linux/mfd/wm831x/irq.h> 329 static inline struct wm831x_irq_data *irq_to_wm831x_irq(struct wm831x *wm831x, argument 337 struct wm831x *wm831x = irq_data_get_irq_chip_data(data); local 339 mutex_lock(&wm831x 344 struct wm831x *wm831x = irq_data_get_irq_chip_data(data); local 376 struct wm831x *wm831x = irq_data_get_irq_chip_data(data); local 385 struct wm831x *wm831x = irq_data_get_irq_chip_data(data); local 394 struct wm831x *wm831x = irq_data_get_irq_chip_data(data); local 456 struct wm831x *wm831x = data; local 572 wm831x_irq_init(struct wm831x *wm831x, int irq) argument 661 wm831x_irq_exit(struct wm831x *wm831x) argument [all...] |
H A D | wm831x-core.c | 2 * wm831x-core.c -- Device access for Wolfson WM831x PMICs 23 #include <linux/mfd/wm831x/core.h> 24 #include <linux/mfd/wm831x/pdata.h> 25 #include <linux/mfd/wm831x/irq.h> 26 #include <linux/mfd/wm831x/auxadc.h> 27 #include <linux/mfd/wm831x/otp.h> 28 #include <linux/mfd/wm831x/pmu.h> 29 #include <linux/mfd/wm831x/regulator.h> 94 static int wm831x_reg_locked(struct wm831x *wm831x, unsigne argument 120 wm831x_reg_lock(struct wm831x *wm831x) argument 146 wm831x_reg_unlock(struct wm831x *wm831x) argument 346 struct wm831x *wm831x = dev_get_drvdata(dev); local 517 wm831x_reg_read(struct wm831x *wm831x, unsigned short reg) argument 539 wm831x_bulk_read(struct wm831x *wm831x, unsigned short reg, int count, u16 *buf) argument 546 wm831x_write(struct wm831x *wm831x, unsigned short reg, int bytes, void *src) argument 576 wm831x_reg_write(struct wm831x *wm831x, unsigned short reg, unsigned short val) argument 599 wm831x_set_bits(struct wm831x *wm831x, unsigned short reg, unsigned short mask, unsigned short val) argument 1619 wm831x_device_init(struct wm831x *wm831x, unsigned long id, int irq) argument 1882 wm831x_device_exit(struct wm831x *wm831x) argument 1886 free_irq(wm831x_irq(wm831x, WM831X_IRQ_AUXADC_DATA), wm831x); local 1890 wm831x_device_suspend(struct wm831x *wm831x) argument 1926 wm831x_device_shutdown(struct wm831x *wm831x) argument [all...] |
H A D | Makefile | 52 wm831x-objs := wm831x-core.o wm831x-irq.o wm831x-otp.o 53 wm831x-objs += wm831x-auxadc.o 54 obj-$(CONFIG_MFD_WM831X) += wm831x.o 55 obj-$(CONFIG_MFD_WM831X_I2C) += wm831x-i2c.o 56 obj-$(CONFIG_MFD_WM831X_SPI) += wm831x-spi.o
|
/drivers/clk/ |
H A D | clk-wm831x.c | 21 #include <linux/mfd/wm831x/core.h> 24 struct wm831x *wm831x; member in struct:wm831x_clk 80 struct wm831x *wm831x = clkdata->wm831x; local 83 ret = wm831x_reg_read(wm831x, WM831X_FLL_CONTROL_1); 85 dev_err(wm831x->dev, "Unable to read FLL_CONTROL_1: %d\n", 97 struct wm831x *wm831x local 114 struct wm831x *wm831x = clkdata->wm831x; local 127 struct wm831x *wm831x = clkdata->wm831x; local 164 struct wm831x *wm831x = clkdata->wm831x; local 189 struct wm831x *wm831x = clkdata->wm831x; local 244 struct wm831x *wm831x = clkdata->wm831x; local 261 struct wm831x *wm831x = clkdata->wm831x; local 284 struct wm831x *wm831x = clkdata->wm831x; local 310 struct wm831x *wm831x = clkdata->wm831x; local 330 struct wm831x *wm831x = clkdata->wm831x; local 355 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local [all...] |
H A D | Makefile | 41 obj-$(CONFIG_COMMON_CLK_WM831X) += clk-wm831x.o
|
/drivers/watchdog/ |
H A D | wm831x_wdt.c | 2 * Watchdog driver for the wm831x PMICs 21 #include <linux/mfd/wm831x/core.h> 22 #include <linux/mfd/wm831x/pdata.h> 23 #include <linux/mfd/wm831x/watchdog.h> 33 struct wm831x *wm831x; member in struct:wm831x_wdt_drvdata 57 struct wm831x *wm831x = driver_data->wm831x; local 62 ret = wm831x_reg_unlock(wm831x); 80 struct wm831x *wm831x = driver_data->wm831x; local 103 struct wm831x *wm831x = driver_data->wm831x; local 146 struct wm831x *wm831x = driver_data->wm831x; local 186 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local [all...] |
/drivers/power/ |
H A D | wm831x_backup.c | 2 * Backup battery driver for Wolfson Microelectronics wm831x PMICs 17 #include <linux/mfd/wm831x/core.h> 18 #include <linux/mfd/wm831x/auxadc.h> 19 #include <linux/mfd/wm831x/pmu.h> 20 #include <linux/mfd/wm831x/pdata.h> 23 struct wm831x *wm831x; member in struct:wm831x_backup 28 static int wm831x_backup_read_voltage(struct wm831x *wm831x, argument 34 ret = wm831x_auxadc_read_uv(wm831x, sr 45 wm831x_config_backup(struct wm831x *wm831x) argument 119 struct wm831x *wm831x = devdata->wm831x; local 166 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local [all...] |
H A D | wm831x_power.c | 2 * PMU driver for Wolfson Microelectronics wm831x PMICs 17 #include <linux/mfd/wm831x/core.h> 18 #include <linux/mfd/wm831x/auxadc.h> 19 #include <linux/mfd/wm831x/pmu.h> 20 #include <linux/mfd/wm831x/pdata.h> 23 struct wm831x *wm831x; member in struct:wm831x_power 33 static int wm831x_power_check_online(struct wm831x *wm831x, int supply, argument 38 ret = wm831x_reg_read(wm831x, WM831X_SYSTEM_STATU 50 wm831x_power_read_voltage(struct wm831x *wm831x, enum wm831x_auxadc src, union power_supply_propval *val) argument 71 struct wm831x *wm831x = wm831x_power->wm831x; local 102 struct wm831x *wm831x = wm831x_power->wm831x; local 197 wm831x_battey_apply_config(struct wm831x *wm831x, struct chg_map *map, int count, int val, int *reg, const char *name, const char *units) argument 216 wm831x_config_battery(struct wm831x *wm831x) argument 294 wm831x_bat_check_status(struct wm831x *wm831x, int *status) argument 328 wm831x_bat_check_type(struct wm831x *wm831x, int *type) argument 353 wm831x_bat_check_health(struct wm831x *wm831x, int *health) argument 397 struct wm831x *wm831x = wm831x_power->wm831x; local 447 struct wm831x *wm831x = wm831x_power->wm831x; local 467 struct wm831x *wm831x = wm831x_power->wm831x; local 479 struct wm831x *wm831x = wm831x_power->wm831x; local 494 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local 631 struct wm831x *wm831x = wm831x_power->wm831x; local [all...] |
/drivers/gpio/ |
H A D | gpio-wm831x.c | 23 #include <linux/mfd/wm831x/core.h> 24 #include <linux/mfd/wm831x/pdata.h> 25 #include <linux/mfd/wm831x/gpio.h> 26 #include <linux/mfd/wm831x/irq.h> 29 struct wm831x *wm831x; member in struct:wm831x_gpio 41 struct wm831x *wm831x = wm831x_gpio->wm831x; local 44 if (wm831x 55 struct wm831x *wm831x = wm831x_gpio->wm831x; local 71 struct wm831x *wm831x = wm831x_gpio->wm831x; local 81 struct wm831x *wm831x = wm831x_gpio->wm831x; local 103 struct wm831x *wm831x = wm831x_gpio->wm831x; local 113 struct wm831x *wm831x = wm831x_gpio->wm831x; local 144 struct wm831x *wm831x = wm831x_gpio->wm831x; local 248 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local [all...] |
/drivers/regulator/ |
H A D | wm831x-isink.c | 2 * wm831x-isink.c -- Current sink driver for the WM831x series 24 #include <linux/mfd/wm831x/core.h> 25 #include <linux/mfd/wm831x/regulator.h> 26 #include <linux/mfd/wm831x/pdata.h> 34 struct wm831x *wm831x; member in struct:wm831x_isink 41 struct wm831x *wm831x = isink->wm831x; local 45 ret = wm831x_set_bits(wm831x, isin 63 struct wm831x *wm831x = isink->wm831x; local 81 struct wm831x *wm831x = isink->wm831x; local 99 struct wm831x *wm831x = isink->wm831x; local 117 struct wm831x *wm831x = isink->wm831x; local 153 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local [all...] |
H A D | wm831x-ldo.c | 2 * wm831x-ldo.c -- LDO driver for the WM831x series 24 #include <linux/mfd/wm831x/core.h> 25 #include <linux/mfd/wm831x/regulator.h> 26 #include <linux/mfd/wm831x/pdata.h> 42 struct wm831x *wm831x; member in struct:wm831x_ldo 74 struct wm831x *wm831x = ldo->wm831x; local 81 return wm831x_set_bits(wm831x, re 87 struct wm831x *wm831x = ldo->wm831x; local 113 struct wm831x *wm831x = ldo->wm831x; local 164 struct wm831x *wm831x = ldo->wm831x; local 221 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local 327 struct wm831x *wm831x = ldo->wm831x; local 340 struct wm831x *wm831x = ldo->wm831x; local 358 struct wm831x *wm831x = ldo->wm831x; local 387 struct wm831x *wm831x = ldo->wm831x; local 431 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local 533 struct wm831x *wm831x = ldo->wm831x; local 546 struct wm831x *wm831x = ldo->wm831x; local 575 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local [all...] |
H A D | wm831x-dcdc.c | 2 * wm831x-dcdc.c -- DC-DC buck convertor driver for the WM831x series 26 #include <linux/mfd/wm831x/core.h> 27 #include <linux/mfd/wm831x/regulator.h> 28 #include <linux/mfd/wm831x/pdata.h> 56 struct wm831x *wm831x; member in struct:wm831x_dcdc 68 struct wm831x *wm831x = dcdc->wm831x; local 72 val = wm831x_reg_read(wm831x, re 93 wm831x_dcdc_set_mode_int(struct wm831x *wm831x, int reg, unsigned int mode) argument 122 struct wm831x *wm831x = dcdc->wm831x; local 132 struct wm831x *wm831x = dcdc->wm831x; local 141 struct wm831x *wm831x = dcdc->wm831x; local 258 struct wm831x *wm831x = dcdc->wm831x; local 308 struct wm831x *wm831x = dcdc->wm831x; local 338 struct wm831x *wm831x = dcdc->wm831x; local 356 struct wm831x *wm831x = dcdc->wm831x; local 394 struct wm831x *wm831x = dcdc->wm831x; local 454 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local 576 struct wm831x *wm831x = dcdc->wm831x; local 605 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local 703 struct wm831x *wm831x = dcdc->wm831x; local 737 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local 829 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local [all...] |
H A D | Makefile | 92 obj-$(CONFIG_REGULATOR_WM831X) += wm831x-dcdc.o 93 obj-$(CONFIG_REGULATOR_WM831X) += wm831x-isink.o 94 obj-$(CONFIG_REGULATOR_WM831X) += wm831x-ldo.o
|
/drivers/input/touchscreen/ |
H A D | wm831x-ts.c | 21 #include <linux/mfd/wm831x/core.h> 22 #include <linux/mfd/wm831x/irq.h> 23 #include <linux/mfd/wm831x/pdata.h> 65 struct wm831x *wm831x; member in struct:wm831x_ts 80 dev_dbg(wm831x_ts->wm831x->dev, "IRQ PD->DATA done\n"); 83 dev_dbg(wm831x_ts->wm831x->dev, "IRQ DATA->PD done\n"); 90 struct wm831x *wm831x = wm831x_ts->wm831x; local 162 struct wm831x *wm831x = wm831x_ts->wm831x; local 193 struct wm831x *wm831x = wm831x_ts->wm831x; local 209 struct wm831x *wm831x = wm831x_ts->wm831x; local 238 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local [all...] |
H A D | Makefile | 71 obj-$(CONFIG_TOUCHSCREEN_WM831X) += wm831x-ts.o
|
/drivers/input/misc/ |
H A D | wm831x-on.c | 2 * wm831x-on.c - WM831X ON pin driver 28 #include <linux/mfd/wm831x/core.h> 33 struct wm831x *wm831x; member in struct:wm831x_on 44 struct wm831x *wm831x = wm831x_on->wm831x; local 47 ret = wm831x_reg_read(wm831x, WM831X_ON_PIN_CONTROL); 54 dev_err(wm831x->dev, "Failed to read ON status: %d\n", ret); 73 struct wm831x *wm831 local [all...] |
H A D | Makefile | 69 obj-$(CONFIG_INPUT_WM831X_ON) += wm831x-on.o
|
/drivers/rtc/ |
H A D | rtc-wm831x.c | 24 #include <linux/mfd/wm831x/core.h> 94 struct wm831x *wm831x; member in struct:wm831x_rtc 99 static void wm831x_rtc_add_randomness(struct wm831x *wm831x) argument 109 ret = wm831x_reg_read(wm831x, WM831X_RTC_WRITE_COUNTER); 114 dev_warn(wm831x->dev, "Failed to read RTC write counter: %d\n", 125 struct wm831x *wm831x = wm831x_rtc->wm831x; local 175 struct wm831x *wm831x = wm831x_rtc->wm831x; local 287 struct wm831x *wm831x = wm831x_rtc->wm831x; local 417 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local [all...] |
/drivers/video/backlight/ |
H A D | wm831x_bl.c | 19 #include <linux/mfd/wm831x/core.h> 20 #include <linux/mfd/wm831x/pdata.h> 21 #include <linux/mfd/wm831x/regulator.h> 24 struct wm831x *wm831x; member in struct:wm831x_backlight_data 32 struct wm831x *wm831x = data->wm831x; local 39 ret = wm831x_set_bits(wm831x, data->isink_reg, 45 ret = wm831x_set_bits(wm831x, WM831X_DCDC_ENABL 126 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local [all...] |
/drivers/hwmon/ |
H A D | wm831x-hwmon.c | 2 * drivers/hwmon/wm831x-hwmon.c - Wolfson Microelectronics WM831x PMIC 29 #include <linux/mfd/wm831x/core.h> 30 #include <linux/mfd/wm831x/auxadc.h> 45 struct wm831x *wm831x = dev_get_drvdata(dev); local 49 ret = wm831x_auxadc_read_uv(wm831x, channel); 59 struct wm831x *wm831x = dev_get_drvdata(dev); local 63 ret = wm831x_auxadc_read(wm831x, channel); 140 ATTRIBUTE_GROUPS(wm831x); variable 144 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local [all...] |
/drivers/leds/ |
H A D | leds-wm831x-status.c | 17 #include <linux/mfd/wm831x/core.h> 18 #include <linux/mfd/wm831x/pdata.h> 19 #include <linux/mfd/wm831x/status.h> 25 struct wm831x *wm831x; member in struct:wm831x_status 68 wm831x_reg_write(led->wm831x, led->reg, led->reg_val); 230 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local 250 drvdata->wm831x = wm831x; [all...] |