Searched refs:axp20x (Results 1 - 19 of 19) sorted by relevance

/linux-master/drivers/mfd/
H A Daxp20x-rsb.c18 #include <linux/mfd/axp20x.h>
27 struct axp20x_dev *axp20x; local
30 axp20x = devm_kzalloc(&rdev->dev, sizeof(*axp20x), GFP_KERNEL);
31 if (!axp20x)
34 axp20x->dev = &rdev->dev;
35 axp20x->irq = rdev->irq;
36 dev_set_drvdata(&rdev->dev, axp20x);
38 ret = axp20x_match_device(axp20x);
42 axp20x
54 struct axp20x_dev *axp20x = sunxi_rsb_device_get_drvdata(rdev); local
[all...]
H A Daxp20x-i2c.c20 #include <linux/mfd/axp20x.h>
27 struct axp20x_dev *axp20x; local
30 axp20x = devm_kzalloc(&i2c->dev, sizeof(*axp20x), GFP_KERNEL);
31 if (!axp20x)
34 axp20x->dev = &i2c->dev;
35 axp20x->irq = i2c->irq;
36 dev_set_drvdata(axp20x->dev, axp20x);
38 ret = axp20x_match_device(axp20x);
54 struct axp20x_dev *axp20x = i2c_get_clientdata(i2c); local
[all...]
H A Daxp20x.c22 #include <linux/mfd/axp20x.h>
539 /* some IRQs are compatible with axp20x models */
828 .name = "axp20x-battery-power-supply",
831 .name = "axp20x-ac-power-supply",
836 .name = "axp20x-usb-power-supply",
841 { .name = "axp20x-regulator" },
846 .name = "axp20x-gpio",
849 .name = "axp20x-pek",
853 .name = "axp20x-regulator",
855 .name = "axp20x
1112 struct axp20x_dev *axp20x = data->cb_data; local
1132 axp20x_match_device(struct axp20x_dev *axp20x) argument
1261 axp20x_device_probe(struct axp20x_dev *axp20x) argument
1329 axp20x_device_remove(struct axp20x_dev *axp20x) argument
[all...]
H A DMakefile143 obj-$(CONFIG_MFD_AXP20X) += axp20x.o
144 obj-$(CONFIG_MFD_AXP20X_I2C) += axp20x-i2c.o
145 obj-$(CONFIG_MFD_AXP20X_RSB) += axp20x-rsb.o
/linux-master/drivers/input/misc/
H A Daxp20x-pek.c2 * axp20x power button driver.
23 #include <linux/mfd/axp20x.h>
41 struct axp20x_dev *axp20x; member in struct:axp20x_pek
96 ret = regmap_read(axp20x_pek->axp20x->regmap, AXP20X_PEK_KEY, &val);
158 ret = regmap_update_bits(axp20x_pek->axp20x->regmap, AXP20X_PEK_KEY,
196 ATTRIBUTE_GROUPS(axp20x); variable
220 struct axp20x_dev *axp20x = axp20x_pek->axp20x; local
227 axp20x_pek->irq_dbr = regmap_irq_get_virq(axp20x->regmap_irqc,
233 axp20x_pek->irq_dbf = regmap_irq_get_virq(axp20x
[all...]
H A DMakefile74 obj-$(CONFIG_INPUT_AXP20X_PEK) += axp20x-pek.o
/linux-master/drivers/regulator/
H A Daxp20x-regulator.c20 #include <linux/mfd/axp20x.h>
442 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); local
448 switch (axp20x->variant) {
497 dev_err(axp20x->dev, "unsupported ramp value %d", ramp);
504 return regmap_update_bits(axp20x->regmap, reg, mask, cfg);
509 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); local
512 switch (axp20x->variant) {
1218 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); local
1222 switch (axp20x->variant) {
1235 * (See include/linux/mfd/axp20x
1320 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); local
1392 axp20x_is_polyphase_slave(struct axp20x_dev *axp20x, int id) argument
1451 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); local
[all...]
H A DMakefile32 obj-$(CONFIG_REGULATOR_AXP20X) += axp20x-regulator.o
/linux-master/drivers/power/supply/
H A Daxp20x_ac_power.c13 #include <linux/mfd/axp20x.h>
39 #define DRVNAME "axp20x-ac-power-supply"
222 .name = "axp20x-ac",
323 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); local
332 if (!axp20x) {
382 power->irqs[i] = regmap_irq_get_virq(axp20x->regmap_irqc, irq);
H A Daxp20x_usb_power.c15 #include <linux/mfd/axp20x.h>
26 #define DRVNAME "axp20x-usb-power-supply"
423 .name = "axp20x-usb",
433 .name = "axp20x-usb",
443 .name = "axp20x-usb",
645 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); local
654 if (!axp20x) {
671 power->regmap = axp20x->regmap;
751 power->irqs[i] = regmap_irq_get_virq(axp20x->regmap_irqc, irq);
H A Daxp288_fuel_gauge.c20 #include <linux/mfd/axp20x.h>
696 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); local
727 info->regmap = axp20x->regmap;
739 ret = regmap_irq_get_virq(axp20x->regmap_irqc, pirq);
H A Daxp288_charger.c22 #include <linux/mfd/axp20x.h>
837 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); local
853 ret = regmap_read(axp20x->regmap, AXP20X_CC_CTRL, &val);
865 info->regmap = axp20x->regmap;
866 info->regmap_irqc = axp20x->regmap_irqc;
H A Daxp20x_battery.c32 #include <linux/mfd/axp20x.h>
512 .name = "axp20x-battery",
650 .name = "axp20x-battery-power-supply",
/linux-master/drivers/acpi/pmic/
H A Dintel_pmic_xpower.c10 #include <linux/mfd/axp20x.h>
340 struct axp20x_dev *axp20x = dev_get_drvdata(parent); local
351 ACPI_HANDLE(parent), axp20x->regmap,
/linux-master/drivers/iio/adc/
H A Daxp288_adc.c16 #include <linux/mfd/axp20x.h>
263 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); local
274 info->regmap = axp20x->regmap;
H A Daxp20x_adc.c23 #include <linux/mfd/axp20x.h>
109 .consumer_dev_name = "axp20x-usb-power-supply",
113 .consumer_dev_name = "axp20x-usb-power-supply",
117 .consumer_dev_name = "axp20x-ac-power-supply",
121 .consumer_dev_name = "axp20x-ac-power-supply",
125 .consumer_dev_name = "axp20x-battery-power-supply",
129 .consumer_dev_name = "axp20x-battery-power-supply",
133 .consumer_dev_name = "axp20x-battery-power-supply",
141 .consumer_dev_name = "axp20x-battery-power-supply",
145 .consumer_dev_name = "axp20x
[all...]
/linux-master/drivers/extcon/
H A Dextcon-axp288.c21 #include <linux/mfd/axp20x.h>
366 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); local
376 info->regmap = axp20x->regmap;
377 info->regmap_irqc = axp20x->regmap_irqc;
/linux-master/drivers/pinctrl/
H A Dpinctrl-axp209.c15 #include <linux/mfd/axp20x.h>
444 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); local
453 if (!axp20x) {
479 pctl->regmap = axp20x->regmap;
530 .name = "axp20x-gpio",
/linux-master/include/linux/mfd/
H A Daxp20x.h877 * axp20x_match_device(): Setup axp20x variant related fields
879 * @axp20x: axp20x device to setup (.dev field must be set)
880 * @dev: device associated with this axp20x device
882 * This lets the axp20x core configure the mfd cells and register maps
885 int axp20x_match_device(struct axp20x_dev *axp20x);
888 * axp20x_device_probe(): Probe a configured axp20x device
890 * @axp20x: axp20x device to probe (must be configured)
892 * This function lets the axp20x cor
[all...]

Completed in 343 milliseconds