Searched refs:max14577 (Results 1 – 10 of 10) sorted by relevance
/linux/drivers/mfd/ |
H A D | max14577.c | 263 static void max14577_print_dev_type(struct max14577 *max14577) in max14577_print_dev_type() argument 268 ret = max14577_read_reg(max14577->regmap, MAX14577_REG_DEVICEID, in max14577_print_dev_type() 271 dev_err(max14577->dev, in max14577_print_dev_type() 281 dev_info(max14577->dev, "Device type: %u (ID: 0x%x, vendor: 0x%x)\n", in max14577_print_dev_type() 282 max14577->dev_type, device_id, vendor_id); in max14577_print_dev_type() 294 static int max77836_init(struct max14577 *max14577) in max77836_init() argument 299 max14577->i2c_pmic = i2c_new_dummy_device(max14577->i2c->adapter, in max77836_init() 301 if (IS_ERR(max14577->i2c_pmic)) { in max77836_init() 302 dev_err(max14577->dev, "Failed to register PMIC I2C device\n"); in max77836_init() 303 return PTR_ERR(max14577->i2c_pmic); in max77836_init() [all …]
|
H A D | Makefile | 164 obj-$(CONFIG_MFD_MAX14577) += max14577.o
|
/linux/drivers/regulator/ |
H A D | max14577-regulator.c | 40 struct max14577 *max14577 = rdev_get_drvdata(rdev); in max14577_reg_get_current_limit() local 42 &maxim_charger_currents[max14577->dev_type]; in max14577_reg_get_current_limit() 62 struct max14577 *max14577 = rdev_get_drvdata(rdev); in max14577_reg_set_current_limit() local 64 &maxim_charger_currents[max14577->dev_type]; in max14577_reg_set_current_limit() 164 static struct regmap *max14577_get_regmap(struct max14577 *max14577, in max14577_get_regmap() argument 167 switch (max14577->dev_type) { in max14577_get_regmap() 171 return max14577->regmap; in max14577_get_regmap() 174 return max14577->regmap_pmic; in max14577_get_regmap() 179 return max14577->regmap; in max14577_get_regmap() 185 struct max14577 *max14577 = dev_get_drvdata(pdev->dev.parent); in max14577_regulator_probe() local [all …]
|
H A D | Makefile | 72 obj-$(CONFIG_REGULATOR_MAX14577) += max14577-regulator.o
|
/linux/drivers/power/supply/ |
H A D | max14577_charger.c | 16 struct max14577 *max14577; member 49 struct regmap *rmap = chg->max14577->regmap; in max14577_get_charger_state() 123 struct regmap *rmap = chg->max14577->regmap; in max14577_get_online() 133 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_online() 162 struct regmap *rmap = chg->max14577->regmap; in max14577_get_battery_health() 172 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_battery_health() 226 return max14577_update_reg(chg->max14577->regmap, in max14577_set_fast_charge_timer() 257 return max14577_write_reg(chg->max14577->regmap, in max14577_init_constant_voltage() 267 switch (chg->max14577->dev_type) { in max14577_init_eoc() 296 return max14577_update_reg(chg->max14577->regmap, in max14577_init_eoc() [all …]
|
/linux/drivers/extcon/ |
H A D | extcon-max14577.c | 72 struct max14577 *max14577; member 168 ret = max14577_update_reg(info->max14577->regmap, in max14577_muic_set_debounce_time() 202 ret = max14577_update_reg(info->max14577->regmap, in max14577_muic_set_path() 215 ret = max14577_update_reg(info->max14577->regmap, in max14577_muic_set_path() 228 ret = max14577_update_reg(info->max14577->regmap, in max14577_muic_set_path() 492 ret = max14577_bulk_read(info->max14577->regmap, in max14577_muic_irq_work() 583 switch (info->max14577->dev_type) { in max14577_muic_irq_handler() 613 ret = max14577_bulk_read(info->max14577->regmap, in max14577_muic_detect_accessory() 658 struct max14577 *max14577 = dev_get_drvdata(pdev->dev.parent); in max14577_muic_probe() local 672 info->max14577 = max14577; in max14577_muic_probe() [all …]
|
H A D | Makefile | 16 obj-$(CONFIG_EXTCON_MAX14577) += extcon-max14577.o
|
/linux/include/linux/mfd/ |
H A D | max14577-private.h | 427 struct max14577 { struct
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-power | 645 What: /sys/class/power_supply/max14577-charger/device/fast_charge_timer 650 This entry shows and sets the maximum time the max14577
|
/linux/ |
H A D | MAINTAINERS | 14018 F: Documentation/devicetree/bindings/power/supply/maxim,max14577.yaml 14029 F: Documentation/devicetree/bindings/*/maxim,max14577.yaml 14035 F: drivers/*/max14577*.c 14039 F: drivers/extcon/extcon-max14577.c 14042 F: include/linux/mfd/max14577*.h
|