mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
power: supply: qti_battery_charger: Handle generic notification
Charger firmware sends some battery related events with a generic notification opcode. Handle such notifications as well to send events up to the userspace. Change-Id: Ia35fb7dbe56183d3c7c7a66b5f387b94072e6ed0 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
This commit is contained in:
parent
dd2116df9a
commit
e72f2c89ce
|
|
@ -27,6 +27,7 @@
|
|||
#define BC_USB_STATUS_SET 0x33
|
||||
#define BC_WLS_STATUS_GET 0x34
|
||||
#define BC_WLS_STATUS_SET 0x35
|
||||
#define BC_GENERIC_NOTIFY 0x80
|
||||
|
||||
/* Generic definitions */
|
||||
#define MAX_STR_LEN 128
|
||||
|
|
@ -410,6 +411,7 @@ static void handle_notification(struct battery_chg_dev *bcdev, void *data,
|
|||
|
||||
switch (notify_msg->notification) {
|
||||
case BC_BATTERY_STATUS_GET:
|
||||
case BC_GENERIC_NOTIFY:
|
||||
pst = &bcdev->psy_list[PSY_TYPE_BATTERY];
|
||||
break;
|
||||
case BC_USB_STATUS_GET:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user