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

Commit 5b122b0a authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-smbcharger: change usb_online from bool to int



Currently, the usb_online property can have three values: -EINVAL, 0,
and 1. This should be declared as an int not a bool.

Fix this by changing the declaration to int.

CRs-Fixed: 767944
Change-Id: I20620325e08267f815892102760ac2b5c5d0dd4e
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 845c96e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ struct smbchg_chip {
	int				dc_suspended;
	int				wake_reasons;
	int				previous_soc;
	bool				usb_online;
	int				usb_online;
	bool				dc_present;
	bool				usb_present;
	bool				batt_present;