Home
last modified time | relevance | path

Searched refs:DS2760_ACTIVE_FULL (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.10/drivers/power/supply/
Dds2760_battery.c82 #define DS2760_ACTIVE_FULL 0x20 macro
327 di->full_active_uAh = di->raw[DS2760_ACTIVE_FULL] << 8 | in ds2760_battery_read_status()
328 di->raw[DS2760_ACTIVE_FULL + 1]; in ds2760_battery_read_status()
338 scale[i] = scale[i - 1] + di->raw[DS2760_ACTIVE_FULL + 1 + i]; in ds2760_battery_read_status()
464 if (tmp[0] == di->raw[DS2760_ACTIVE_FULL] && in ds2760_battery_write_active_full()
465 tmp[1] == di->raw[DS2760_ACTIVE_FULL + 1]) in ds2760_battery_write_active_full()
468 w1_ds2760_write(di->dev, tmp, DS2760_ACTIVE_FULL, sizeof(tmp)); in ds2760_battery_write_active_full()
474 di->raw[DS2760_ACTIVE_FULL] = tmp[0]; in ds2760_battery_write_active_full()
475 di->raw[DS2760_ACTIVE_FULL + 1] = tmp[1]; in ds2760_battery_write_active_full()