Lines Matching defs:data
146 struct chip_data data;
162 return regmap_write(chip->regmap, MAX17040_CMD, chip->data.reset_val);
180 u16 mask = chip->data.rcomp_bytes == 2 ?
188 struct chip_data *d = &chip->data;
249 struct chip_data *data = &max17040_family[
270 if (rcomp_len == data->rcomp_bytes) {
296 static void max17040_stop_work(void *data)
298 struct max17040_chip *chip = data;
326 u32 data;
328 regmap_read(chip->regmap, MAX17040_STATUS, &data);
330 if (data & MAX17040_STATUS_HD_MASK) {
334 if (data & MAX17040_STATUS_SC_MASK) {
337 data & ~MAX17040_STATUS_SC_MASK);
347 if (!(chip->data.has_soc_alert && max17040_handle_soc_alert(chip)))
495 chip->data = max17040_family[chip_id];
518 if (client->irq && chip->data.has_low_soc_alert) {
529 if (client->irq && chip->data.has_soc_alert) {
565 if (client->irq && chip->data.has_soc_alert)
585 if (client->irq && chip->data.has_soc_alert)
617 { .compatible = "maxim,max17040", .data = (void *) ID_MAX17040 },
618 { .compatible = "maxim,max17041", .data = (void *) ID_MAX17041 },
619 { .compatible = "maxim,max17043", .data = (void *) ID_MAX17043 },
620 { .compatible = "maxim,max77836-battery", .data = (void *) ID_MAX17043 },
621 { .compatible = "maxim,max17044", .data = (void *) ID_MAX17044 },
622 { .compatible = "maxim,max17048", .data = (void *) ID_MAX17048 },
623 { .compatible = "maxim,max17049", .data = (void *) ID_MAX17049 },
624 { .compatible = "maxim,max17058", .data = (void *) ID_MAX17058 },
625 { .compatible = "maxim,max17059", .data = (void *) ID_MAX17059 },