/drivers/mfd/ |
D | axp20x-i2c.c | 31 struct axp20x_dev *axp20x; in axp20x_i2c_probe() local 34 axp20x = devm_kzalloc(&i2c->dev, sizeof(*axp20x), GFP_KERNEL); in axp20x_i2c_probe() 35 if (!axp20x) in axp20x_i2c_probe() 38 axp20x->dev = &i2c->dev; in axp20x_i2c_probe() 39 axp20x->irq = i2c->irq; in axp20x_i2c_probe() 40 dev_set_drvdata(axp20x->dev, axp20x); in axp20x_i2c_probe() 42 ret = axp20x_match_device(axp20x); in axp20x_i2c_probe() 46 axp20x->regmap = devm_regmap_init_i2c(i2c, axp20x->regmap_cfg); in axp20x_i2c_probe() 47 if (IS_ERR(axp20x->regmap)) { in axp20x_i2c_probe() 48 ret = PTR_ERR(axp20x->regmap); in axp20x_i2c_probe() [all …]
|
D | axp20x-rsb.c | 30 struct axp20x_dev *axp20x; in axp20x_rsb_probe() local 33 axp20x = devm_kzalloc(&rdev->dev, sizeof(*axp20x), GFP_KERNEL); in axp20x_rsb_probe() 34 if (!axp20x) in axp20x_rsb_probe() 37 axp20x->dev = &rdev->dev; in axp20x_rsb_probe() 38 axp20x->irq = rdev->irq; in axp20x_rsb_probe() 39 dev_set_drvdata(&rdev->dev, axp20x); in axp20x_rsb_probe() 41 ret = axp20x_match_device(axp20x); in axp20x_rsb_probe() 45 axp20x->regmap = devm_regmap_init_sunxi_rsb(rdev, axp20x->regmap_cfg); in axp20x_rsb_probe() 46 if (IS_ERR(axp20x->regmap)) { in axp20x_rsb_probe() 47 ret = PTR_ERR(axp20x->regmap); in axp20x_rsb_probe() [all …]
|
D | axp20x.c | 755 int axp20x_match_device(struct axp20x_dev *axp20x) in axp20x_match_device() argument 757 struct device *dev = axp20x->dev; in axp20x_match_device() 767 axp20x->variant = (long)of_id->data; in axp20x_match_device() 774 axp20x->variant = (long)acpi_id->driver_data; in axp20x_match_device() 777 switch (axp20x->variant) { in axp20x_match_device() 779 axp20x->nr_cells = ARRAY_SIZE(axp152_cells); in axp20x_match_device() 780 axp20x->cells = axp152_cells; in axp20x_match_device() 781 axp20x->regmap_cfg = &axp152_regmap_config; in axp20x_match_device() 782 axp20x->regmap_irq_chip = &axp152_regmap_irq_chip; in axp20x_match_device() 786 axp20x->nr_cells = ARRAY_SIZE(axp20x_cells); in axp20x_match_device() [all …]
|
D | Makefile | 120 obj-$(CONFIG_MFD_AXP20X) += axp20x.o 121 obj-$(CONFIG_MFD_AXP20X_I2C) += axp20x-i2c.o 122 obj-$(CONFIG_MFD_AXP20X_RSB) += axp20x-rsb.o
|
/drivers/input/misc/ |
D | axp20x-pek.c | 32 struct axp20x_dev *axp20x; member 85 ret = regmap_read(axp20x_pek->axp20x->regmap, AXP20X_PEK_KEY, &val); in axp20x_show_ext_attr() 136 ret = regmap_update_bits(axp20x_pek->axp20x->regmap, in axp20x_store_ext_attr() 194 struct axp20x_dev *axp20x; in axp20x_pek_probe() local 203 axp20x_pek->axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_pek_probe() 204 axp20x = axp20x_pek->axp20x; in axp20x_pek_probe() 212 axp20x_pek->irq_dbr = regmap_irq_get_virq(axp20x->regmap_irqc, in axp20x_pek_probe() 221 axp20x_pek->irq_dbf = regmap_irq_get_virq(axp20x->regmap_irqc, in axp20x_pek_probe() 242 dev_err(axp20x->dev, "Failed to request dbr IRQ#%d: %d\n", in axp20x_pek_probe() 251 dev_err(axp20x->dev, "Failed to request dbf IRQ#%d: %d\n", in axp20x_pek_probe() [all …]
|
D | Makefile | 67 obj-$(CONFIG_INPUT_AXP20X_PEK) += axp20x-pek.o
|
D | Kconfig | 496 be called axp20x-pek.
|
/drivers/regulator/ |
D | axp20x-regulator.c | 360 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_set_dcdc_freq() local 364 switch (axp20x->variant) { in axp20x_set_dcdc_freq() 411 return regmap_update_bits(axp20x->regmap, reg, in axp20x_set_dcdc_freq() 444 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); in axp20x_set_dcdc_workmode() local 448 switch (axp20x->variant) { in axp20x_set_dcdc_workmode() 491 static bool axp20x_is_polyphase_slave(struct axp20x_dev *axp20x, int id) in axp20x_is_polyphase_slave() argument 496 if (axp20x->variant != AXP806_ID) in axp20x_is_polyphase_slave() 499 regmap_read(axp20x->regmap, AXP806_DCDC_MODE_CTRL2, ®); in axp20x_is_polyphase_slave() 517 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_regulator_probe() local 521 .regmap = axp20x->regmap, in axp20x_regulator_probe() [all …]
|
D | Makefile | 24 obj-$(CONFIG_REGULATOR_AXP20X) += axp20x-regulator.o
|
/drivers/power/supply/ |
D | axp20x_usb_power.c | 194 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_usb_power_probe() local 208 if (!axp20x) { in axp20x_usb_power_probe() 218 power->regmap = axp20x->regmap; in axp20x_usb_power_probe() 244 axp20x->variant); in axp20x_usb_power_probe() 264 irq = regmap_irq_get_virq(axp20x->regmap_irqc, irq); in axp20x_usb_power_probe()
|
D | axp288_charger.c | 814 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_charger_probe() local 822 info->regmap = axp20x->regmap; in axp288_charger_probe() 823 info->regmap_irqc = axp20x->regmap_irqc; in axp288_charger_probe()
|
D | axp288_fuel_gauge.c | 1093 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_fuel_gauge_probe() local 1101 info->regmap = axp20x->regmap; in axp288_fuel_gauge_probe() 1102 info->regmap_irqc = axp20x->regmap_irqc; in axp288_fuel_gauge_probe()
|
/drivers/gpio/ |
D | gpio-axp209.c | 133 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_gpio_probe() local 140 if (!axp20x) { in axp20x_gpio_probe() 161 gpio->regmap = axp20x->regmap; in axp20x_gpio_probe()
|
/drivers/acpi/pmic/ |
D | intel_pmic_xpower.c | 233 struct axp20x_dev *axp20x = dev_get_drvdata(parent); in intel_xpower_pmic_opregion_probe() local 244 ACPI_HANDLE(parent), axp20x->regmap, in intel_xpower_pmic_opregion_probe()
|
/drivers/extcon/ |
D | extcon-axp288.c | 273 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_extcon_probe() local 281 info->regmap = axp20x->regmap; in axp288_extcon_probe() 282 info->regmap_irqc = axp20x->regmap_irqc; in axp288_extcon_probe()
|
/drivers/iio/adc/ |
D | axp288_adc.c | 154 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp288_adc_probe() local 167 info->regmap = axp20x->regmap; in axp288_adc_probe()
|