Lines Matching defs:max17040_chip
140 struct max17040_chip {
160 static int max17040_reset(struct max17040_chip *chip)
165 static int max17040_set_low_soc_alert(struct max17040_chip *chip, u32 level)
172 static int max17040_set_soc_alert(struct max17040_chip *chip, bool enable)
178 static int max17040_set_rcomp(struct max17040_chip *chip, u16 rcomp)
186 static int max17040_raw_vcell_to_uvolts(struct max17040_chip *chip, u16 vcell)
194 static int max17040_get_vcell(struct max17040_chip *chip)
203 static int max17040_get_soc(struct max17040_chip *chip)
212 static int max17040_get_version(struct max17040_chip *chip)
222 static int max17040_get_online(struct max17040_chip *chip)
228 static int max17040_get_status(struct max17040_chip *chip)
246 static int max17040_get_of_data(struct max17040_chip *chip)
284 static void max17040_check_changes(struct max17040_chip *chip)
290 static void max17040_queue_work(struct max17040_chip *chip)
298 struct max17040_chip *chip = data;
305 struct max17040_chip *chip;
308 chip = container_of(work, struct max17040_chip, work.work);
323 static bool max17040_handle_soc_alert(struct max17040_chip *chip)
345 struct max17040_chip *chip = dev;
362 static int max17040_enable_alert_irq(struct max17040_chip *chip)
391 struct max17040_chip *chip = power_supply_get_drvdata(psy);
416 struct max17040_chip *chip = power_supply_get_drvdata(psy);
470 struct max17040_chip *chip;
563 struct max17040_chip *chip = i2c_get_clientdata(client);
580 struct max17040_chip *chip = i2c_get_clientdata(client);