/drivers/input/misc/ |
H A D | wm831x-on.c | 2 * wm831x-on.c - WM831X ON pin driver 29 #include <linux/mfd/wm831x/core.h> 34 struct wm831x *wm831x; member in struct:wm831x_on 45 struct wm831x *wm831x = wm831x_on->wm831x; local 48 ret = wm831x_reg_read(wm831x, WM831X_ON_PIN_CONTROL); 55 dev_err(wm831x->dev, "Failed to read ON status: %d\n", ret); 74 struct wm831x *wm831 local [all...] |
/drivers/mfd/ |
H A D | Makefile | 27 wm831x-objs := wm831x-core.o wm831x-irq.o wm831x-otp.o 28 wm831x-objs += wm831x-auxadc.o 29 obj-$(CONFIG_MFD_WM831X) += wm831x.o 30 obj-$(CONFIG_MFD_WM831X_I2C) += wm831x-i2c.o 31 obj-$(CONFIG_MFD_WM831X_SPI) += wm831x-spi.o
|
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 = i2c_get_clientdata(i2c); local [all...] |
H A D | wm831x-otp.c | 2 * wm831x-otp.c -- OTP for Wolfson WM831x PMICs 22 #include <linux/mfd/wm831x/core.h> 23 #include <linux/mfd/wm831x/otp.h> 29 static int wm831x_unique_id_read(struct wm831x *wm831x, char *id) argument 34 val = wm831x_reg_read(wm831x, WM831X_UNIQUE_ID_1 + i); 48 struct wm831x *wm831x = dev_get_drvdata(dev); local 53 rval = wm831x_unique_id_read(wm831x, id); 67 int wm831x_otp_init(struct wm831x *wm831 argument 79 wm831x_otp_exit(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) 40 dev_set_drvdata(&spi->dev, wm831x); 41 wm831x->dev = &spi->dev; 43 wm831x 56 struct wm831x *wm831x = dev_get_drvdata(&spi->dev); local 65 struct wm831x *wm831x = dev_get_drvdata(dev); local 72 struct wm831x *wm831x = dev_get_drvdata(&spi->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-irq.c | 2 * wm831x-irq.c -- Interrupt controller support for Wolfson WM831x PMICs 22 #include <linux/mfd/wm831x/core.h> 23 #include <linux/mfd/wm831x/pdata.h> 24 #include <linux/mfd/wm831x/gpio.h> 25 #include <linux/mfd/wm831x/irq.h> 328 static inline struct wm831x_irq_data *irq_to_wm831x_irq(struct wm831x *wm831x, argument 331 return &wm831x_irqs[irq - wm831x->irq_base]; 336 struct wm831x *wm831x local 343 struct wm831x *wm831x = irq_data_get_irq_chip_data(data); local 375 struct wm831x *wm831x = irq_data_get_irq_chip_data(data); local 384 struct wm831x *wm831x = irq_data_get_irq_chip_data(data); local 393 struct wm831x *wm831x = irq_data_get_irq_chip_data(data); local 452 struct wm831x *wm831x = data; local 530 wm831x_irq_init(struct wm831x *wm831x, int irq) argument 619 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 1891 wm831x_device_suspend(struct wm831x *wm831x) argument 1927 wm831x_device_shutdown(struct wm831x *wm831x) argument [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> 33 struct wm831x *wm831x; member in struct:wm831x_hwmon 40 return sprintf(buf, "wm831x\n"); 61 ret = wm831x_auxadc_read_uv(hwmon->wm831x, channel); 75 ret = wm831x_auxadc_read(hwmon->wm831x, channel); 162 struct wm831x *wm831x 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 [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 125 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); 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 115 struct wm831x *wm831x = wm831x_gpio->wm831x; local 146 struct wm831x *wm831x = wm831x_gpio->wm831x; local 250 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> 41 struct wm831x *wm831x; member in struct:wm831x_ldo 52 struct wm831x *wm831x = ldo->wm831x; local 56 reg = wm831x_reg_read(wm831x, WM831X_LDO_ENABL 69 struct wm831x *wm831x = ldo->wm831x; local 78 struct wm831x *wm831x = ldo->wm831x; local 120 struct wm831x *wm831x = ldo->wm831x; local 166 struct wm831x *wm831x = ldo->wm831x; local 182 struct wm831x *wm831x = ldo->wm831x; local 208 struct wm831x *wm831x = ldo->wm831x; local 259 struct wm831x *wm831x = ldo->wm831x; local 311 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local 429 struct wm831x *wm831x = ldo->wm831x; local 474 struct wm831x *wm831x = ldo->wm831x; local 490 struct wm831x *wm831x = ldo->wm831x; local 508 struct wm831x *wm831x = ldo->wm831x; local 537 struct wm831x *wm831x = ldo->wm831x; local 576 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local 686 struct wm831x *wm831x = ldo->wm831x; local 726 struct wm831x *wm831x = ldo->wm831x; local 742 struct wm831x *wm831x = ldo->wm831x; local 770 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> 55 struct wm831x *wm831x; member in struct:wm831x_dcdc 66 struct wm831x *wm831x = dcdc->wm831x; local 70 reg = wm831x_reg_read(wm831x, WM831X_DCDC_ENABL 83 struct wm831x *wm831x = dcdc->wm831x; local 92 struct wm831x *wm831x = dcdc->wm831x; local 102 struct wm831x *wm831x = dcdc->wm831x; local 127 wm831x_dcdc_set_mode_int(struct wm831x *wm831x, int reg, unsigned int mode) argument 156 struct wm831x *wm831x = dcdc->wm831x; local 166 struct wm831x *wm831x = dcdc->wm831x; local 175 struct wm831x *wm831x = dcdc->wm831x; local 292 struct wm831x *wm831x = dcdc->wm831x; local 348 struct wm831x *wm831x = dcdc->wm831x; local 378 struct wm831x *wm831x = dcdc->wm831x; local 397 struct wm831x *wm831x = dcdc->wm831x; local 433 struct wm831x *wm831x = dcdc->wm831x; local 499 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local 641 struct wm831x *wm831x = dcdc->wm831x; local 681 struct wm831x *wm831x = dcdc->wm831x; local 709 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local 808 struct wm831x *wm831x = dcdc->wm831x; local 842 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local 947 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local [all...] |
/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/input/touchscreen/ |
H A D | wm831x-ts.c | 22 #include <linux/mfd/wm831x/core.h> 23 #include <linux/mfd/wm831x/irq.h> 24 #include <linux/mfd/wm831x/pdata.h> 66 struct wm831x *wm831x; member in struct:wm831x_ts 81 dev_dbg(wm831x_ts->wm831x->dev, "IRQ PD->DATA done\n"); 84 dev_dbg(wm831x_ts->wm831x->dev, "IRQ DATA->PD done\n"); 91 struct wm831x *wm831x = wm831x_ts->wm831x; local 163 struct wm831x *wm831x = wm831x_ts->wm831x; local 194 struct wm831x *wm831x = wm831x_ts->wm831x; local 210 struct wm831x *wm831x = wm831x_ts->wm831x; local 239 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local [all...] |
/drivers/leds/ |
H A D | leds-wm831x-status.c | 18 #include <linux/mfd/wm831x/core.h> 19 #include <linux/mfd/wm831x/pdata.h> 20 #include <linux/mfd/wm831x/status.h> 26 struct wm831x *wm831x; member in struct:wm831x_status 69 wm831x_reg_write(led->wm831x, led->reg, led->reg_val); 225 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local 246 drvdata->wm831x = wm831x; [all...] |
/drivers/rtc/ |
H A D | rtc-wm831x.c | 24 #include <linux/mfd/wm831x/core.h> 94 struct wm831x *wm831x; member in struct:wm831x_rtc 105 struct wm831x *wm831x = wm831x_rtc->wm831x; local 111 ret = wm831x_reg_read(wm831x, WM831X_RTC_CONTROL); 125 ret = wm831x_bulk_read(wm831x, WM831X_RTC_TIME_1, 130 ret = wm831x_bulk_read(wm831x, WM831X_RTC_TIME_1, 155 struct wm831x *wm831 local 267 struct wm831x *wm831x = wm831x_rtc->wm831x; local 397 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); local [all...] |