Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/power/supply/
Dds2760_battery.c85 #define DS2760_RATED_CAPACITY 0x32 macro
318 if (di->raw[DS2760_RATED_CAPACITY] < ARRAY_SIZE(rated_capacities)) in ds2760_battery_read_status()
320 (unsigned int)di->raw[DS2760_RATED_CAPACITY]]; in ds2760_battery_read_status()
322 di->rated_capacity = di->raw[DS2760_RATED_CAPACITY] * 10; in ds2760_battery_read_status()
448 if (rated_capacity == di->raw[DS2760_RATED_CAPACITY]) in ds2760_battery_write_rated_capacity()
451 w1_ds2760_write(di->dev, &rated_capacity, DS2760_RATED_CAPACITY, 1); in ds2760_battery_write_rated_capacity()