Home
last modified time | relevance | path

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

/drivers/power/
Dds2782_battery.c48 struct ds278x_info;
51 int (*get_battery_current)(struct ds278x_info *info, int *current_uA);
52 int (*get_battery_voltage)(struct ds278x_info *info, int *voltage_uV);
53 int (*get_battery_capacity)(struct ds278x_info *info, int *capacity);
56 #define to_ds278x_info(x) container_of(x, struct ds278x_info, battery)
58 struct ds278x_info { struct
72 static inline int ds278x_read_reg(struct ds278x_info *info, int reg, u8 *val) in ds278x_read_reg() argument
86 static inline int ds278x_read_reg16(struct ds278x_info *info, int reg_msb, in ds278x_read_reg16()
101 static int ds278x_get_temp(struct ds278x_info *info, int *temp) in ds278x_get_temp()
119 static int ds2782_get_current(struct ds278x_info *info, int *current_uA) in ds2782_get_current()
[all …]