Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/power/supply/
Dipaq_micro_battery.c53 struct ipaq_micro_msg msg_battery = { in micro_battery_work() local
61 ipaq_micro_tx_msg_sync(mb->micro, &msg_battery); in micro_battery_work()
62 if (msg_battery.rx_len < 4) in micro_battery_work()
75 mb->ac = msg_battery.rx_data[0]; in micro_battery_work()
76 mb->chemistry = msg_battery.rx_data[1]; in micro_battery_work()
77 mb->voltage = ((((unsigned short)msg_battery.rx_data[3] << 8) + in micro_battery_work()
78 msg_battery.rx_data[2]) * 5000L) * 1000 / 1024; in micro_battery_work()
79 mb->flag = msg_battery.rx_data[4]; in micro_battery_work()
81 if (msg_battery.rx_len == 9) in micro_battery_work()