Lines Matching defs:data
144 struct chip_data data;
158 return regmap_write(chip->regmap, MAX17040_CMD, chip->data.reset_val);
176 u16 mask = chip->data.rcomp_bytes == 2 ?
184 struct chip_data *d = &chip->data;
226 struct chip_data *data = &max17040_family[
247 if (rcomp_len == data->rcomp_bytes) {
271 static void max17040_stop_work(void *data)
273 struct max17040_chip *chip = data;
300 u32 data;
302 regmap_read(chip->regmap, MAX17040_STATUS, &data);
304 if (data & MAX17040_STATUS_HD_MASK) {
308 if (data & MAX17040_STATUS_SC_MASK) {
311 data & ~MAX17040_STATUS_SC_MASK);
321 if (!(chip->data.has_soc_alert && max17040_handle_soc_alert(chip)))
461 chip->data = max17040_family[chip_id];
484 if (client->irq && chip->data.has_low_soc_alert) {
495 if (client->irq && chip->data.has_soc_alert) {
531 if (client->irq && chip->data.has_soc_alert)
551 if (client->irq && chip->data.has_soc_alert)
583 { .compatible = "maxim,max17040", .data = (void *) ID_MAX17040 },
584 { .compatible = "maxim,max17041", .data = (void *) ID_MAX17041 },
585 { .compatible = "maxim,max17043", .data = (void *) ID_MAX17043 },
586 { .compatible = "maxim,max77836-battery", .data = (void *) ID_MAX17043 },
587 { .compatible = "maxim,max17044", .data = (void *) ID_MAX17044 },
588 { .compatible = "maxim,max17048", .data = (void *) ID_MAX17048 },
589 { .compatible = "maxim,max17049", .data = (void *) ID_MAX17049 },
590 { .compatible = "maxim,max17058", .data = (void *) ID_MAX17058 },
591 { .compatible = "maxim,max17059", .data = (void *) ID_MAX17059 },