Lines Matching defs:max17040_chip
139 struct max17040_chip {
156 static int max17040_reset(struct max17040_chip *chip)
161 static int max17040_set_low_soc_alert(struct max17040_chip *chip, u32 level)
168 static int max17040_set_soc_alert(struct max17040_chip *chip, bool enable)
174 static int max17040_set_rcomp(struct max17040_chip *chip, u16 rcomp)
182 static int max17040_raw_vcell_to_uvolts(struct max17040_chip *chip, u16 vcell)
190 static int max17040_get_vcell(struct max17040_chip *chip)
199 static int max17040_get_soc(struct max17040_chip *chip)
208 static int max17040_get_version(struct max17040_chip *chip)
218 static int max17040_get_online(struct max17040_chip *chip)
223 static int max17040_get_of_data(struct max17040_chip *chip)
260 static void max17040_check_changes(struct max17040_chip *chip)
265 static void max17040_queue_work(struct max17040_chip *chip)
273 struct max17040_chip *chip = data;
280 struct max17040_chip *chip;
283 chip = container_of(work, struct max17040_chip, work.work);
297 static bool max17040_handle_soc_alert(struct max17040_chip *chip)
319 struct max17040_chip *chip = dev;
336 static int max17040_enable_alert_irq(struct max17040_chip *chip)
363 struct max17040_chip *chip = power_supply_get_drvdata(psy);
388 struct max17040_chip *chip = power_supply_get_drvdata(psy);
438 struct max17040_chip *chip;
529 struct max17040_chip *chip = i2c_get_clientdata(client);
546 struct max17040_chip *chip = i2c_get_clientdata(client);