/drivers/mfd/ |
D | axp20x.c | 1111 struct axp20x_dev *axp20x = data->cb_data; in axp20x_power_off() local 1114 switch (axp20x->variant) { in axp20x_power_off() 1123 regmap_write(axp20x->regmap, shutdown_reg, AXP20X_OFF); in axp20x_power_off() 1131 int axp20x_match_device(struct axp20x_dev *axp20x) in axp20x_match_device() argument 1133 struct device *dev = axp20x->dev; in axp20x_match_device() 1143 axp20x->variant = (long)of_id->data; in axp20x_match_device() 1150 axp20x->variant = (long)acpi_id->driver_data; in axp20x_match_device() 1153 switch (axp20x->variant) { in axp20x_match_device() 1155 axp20x->nr_cells = ARRAY_SIZE(axp152_cells); in axp20x_match_device() 1156 axp20x->cells = axp152_cells; in axp20x_match_device() [all …]
|
D | axp20x-rsb.c | 27 struct axp20x_dev *axp20x; in axp20x_rsb_probe() local 30 axp20x = devm_kzalloc(&rdev->dev, sizeof(*axp20x), GFP_KERNEL); in axp20x_rsb_probe() 31 if (!axp20x) in axp20x_rsb_probe() 34 axp20x->dev = &rdev->dev; in axp20x_rsb_probe() 35 axp20x->irq = rdev->irq; in axp20x_rsb_probe() 36 dev_set_drvdata(&rdev->dev, axp20x); in axp20x_rsb_probe() 38 ret = axp20x_match_device(axp20x); in axp20x_rsb_probe() 42 axp20x->regmap = devm_regmap_init_sunxi_rsb(rdev, axp20x->regmap_cfg); in axp20x_rsb_probe() 43 if (IS_ERR(axp20x->regmap)) { in axp20x_rsb_probe() 44 ret = PTR_ERR(axp20x->regmap); in axp20x_rsb_probe() [all …]
|
D | axp20x-i2c.c | 27 struct axp20x_dev *axp20x; in axp20x_i2c_probe() local 30 axp20x = devm_kzalloc(&i2c->dev, sizeof(*axp20x), GFP_KERNEL); in axp20x_i2c_probe() 31 if (!axp20x) in axp20x_i2c_probe() 34 axp20x->dev = &i2c->dev; in axp20x_i2c_probe() 35 axp20x->irq = i2c->irq; in axp20x_i2c_probe() 36 dev_set_drvdata(axp20x->dev, axp20x); in axp20x_i2c_probe() 38 ret = axp20x_match_device(axp20x); in axp20x_i2c_probe() 42 axp20x->regmap = devm_regmap_init_i2c(i2c, axp20x->regmap_cfg); in axp20x_i2c_probe() 43 if (IS_ERR(axp20x->regmap)) { in axp20x_i2c_probe() 44 ret = PTR_ERR(axp20x->regmap); in axp20x_i2c_probe() [all …]
|
D | Makefile | 143 obj-$(CONFIG_MFD_AXP20X) += axp20x.o 144 obj-$(CONFIG_MFD_AXP20X_I2C) += axp20x-i2c.o 145 obj-$(CONFIG_MFD_AXP20X_RSB) += axp20x-rsb.o
|
/drivers/input/misc/ |
D | axp20x-pek.c | 41 struct axp20x_dev *axp20x; member 96 ret = regmap_read(axp20x_pek->axp20x->regmap, AXP20X_PEK_KEY, &val); in axp20x_show_attr() 167 ret = regmap_update_bits(axp20x_pek->axp20x->regmap, AXP20X_PEK_KEY, in axp20x_store_attr() 205 ATTRIBUTE_GROUPS(axp20x); 229 struct axp20x_dev *axp20x = axp20x_pek->axp20x; in axp20x_pek_probe_input_device() local 236 axp20x_pek->irq_dbr = regmap_irq_get_virq(axp20x->regmap_irqc, in axp20x_pek_probe_input_device() 242 axp20x_pek->irq_dbf = regmap_irq_get_virq(axp20x->regmap_irqc, in axp20x_pek_probe_input_device() 292 axp20x_pek->axp20x->variant == AXP288_ID) { in axp20x_pek_should_register_input() 324 axp20x_pek->axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_pek_probe() 377 if (axp20x_pek->axp20x->variant != AXP288_ID) in axp20x_pek_resume_noirq() [all …]
|
D | Makefile | 74 obj-$(CONFIG_INPUT_AXP20X_PEK) += axp20x-pek.o
|
D | Kconfig | 500 be called axp20x-pek.
|
/drivers/regulator/ |
D | axp20x-regulator.c | 442 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); in axp20x_set_ramp_delay() local 448 switch (axp20x->variant) { in axp20x_set_ramp_delay() 497 dev_err(axp20x->dev, "unsupported ramp value %d", ramp); in axp20x_set_ramp_delay() 504 return regmap_update_bits(axp20x->regmap, reg, mask, cfg); in axp20x_set_ramp_delay() 509 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); in axp20x_regulator_enable_regmap() local 512 switch (axp20x->variant) { in axp20x_regulator_enable_regmap() 1218 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_set_dcdc_freq() local 1222 switch (axp20x->variant) { in axp20x_set_dcdc_freq() 1244 if (axp20x->variant == AXP806_ID) in axp20x_set_dcdc_freq() 1288 return regmap_update_bits(axp20x->regmap, reg, in axp20x_set_dcdc_freq() [all …]
|
D | Makefile | 31 obj-$(CONFIG_REGULATOR_AXP20X) += axp20x-regulator.o
|
/drivers/power/supply/ |
D | axp20x_ac_power.c | 323 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_ac_power_probe() local 332 if (!axp20x) { in axp20x_ac_power_probe() 382 power->irqs[i] = regmap_irq_get_virq(axp20x->regmap_irqc, irq); in axp20x_ac_power_probe()
|
D | axp20x_usb_power.c | 537 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_usb_power_probe() local 546 if (!axp20x) { in axp20x_usb_power_probe() 562 power->regmap = axp20x->regmap; in axp20x_usb_power_probe() 636 power->irqs[i] = regmap_irq_get_virq(axp20x->regmap_irqc, irq); in axp20x_usb_power_probe()
|
D | axp288_charger.c | 837 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_charger_probe() local 853 ret = regmap_read(axp20x->regmap, AXP20X_CC_CTRL, &val); in axp288_charger_probe() 865 info->regmap = axp20x->regmap; in axp288_charger_probe() 866 info->regmap_irqc = axp20x->regmap_irqc; in axp288_charger_probe()
|
D | axp288_fuel_gauge.c | 686 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_fuel_gauge_probe() local 717 info->regmap = axp20x->regmap; in axp288_fuel_gauge_probe() 729 ret = regmap_irq_get_virq(axp20x->regmap_irqc, pirq); in axp288_fuel_gauge_probe()
|
/drivers/extcon/ |
D | extcon-axp288.c | 366 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_extcon_probe() local 376 info->regmap = axp20x->regmap; in axp288_extcon_probe() 377 info->regmap_irqc = axp20x->regmap_irqc; in axp288_extcon_probe()
|
/drivers/acpi/pmic/ |
D | intel_pmic_xpower.c | 340 struct axp20x_dev *axp20x = dev_get_drvdata(parent); in intel_xpower_pmic_opregion_probe() local 351 ACPI_HANDLE(parent), axp20x->regmap, in intel_xpower_pmic_opregion_probe()
|
/drivers/iio/adc/ |
D | axp288_adc.c | 263 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_adc_probe() local 274 info->regmap = axp20x->regmap; in axp288_adc_probe()
|
/drivers/pinctrl/ |
D | pinctrl-axp209.c | 449 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_pctl_probe() local 458 if (!axp20x) { in axp20x_pctl_probe() 484 pctl->regmap = axp20x->regmap; in axp20x_pctl_probe()
|