Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ad77720 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: supply: qti_battery_charger: Handle generic notification"

parents 7a3a08b2 29ec019e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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:
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@
#define BD_QBG_DUMP_REQ		0x36

/* Generic definitions */
#define MAX_BUF_LEN		(560 * sizeof(u32))
#define MAX_BUF_LEN		SZ_4K
#define BD_WAIT_TIME_MS		1000

struct qbg_context_req_msg {