Lines Matching full:capacity
26 #define DS2782_REG_RARC 0x06 /* Remaining active relative capacity */
38 #define DS2786_REG_RARC 0x02 /* Remaining active relative capacity */
49 int (*get_battery_capacity)(struct ds278x_info *info, int *capacity);
62 int capacity; member
161 static int ds2782_get_capacity(struct ds278x_info *info, int *capacity) in ds2782_get_capacity() argument
169 *capacity = raw; in ds2782_get_capacity()
201 static int ds2786_get_capacity(struct ds278x_info *info, int *capacity) in ds2786_get_capacity() argument
209 /* Relative capacity is displayed with resolution 0.5 % */ in ds2786_get_capacity()
210 *capacity = raw/2 ; in ds2786_get_capacity()
218 int capacity; in ds278x_get_status() local
224 err = info->ops->get_battery_capacity(info, &capacity); in ds278x_get_status()
228 info->capacity = capacity; in ds278x_get_status()
230 if (capacity == 100) in ds278x_get_status()
280 int old_capacity = info->capacity; in ds278x_bat_update()
284 if ((old_status != info->status) || (old_capacity != info->capacity)) in ds278x_bat_update()
420 info->capacity = 100; in ds278x_battery_probe()