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

Commit 23885de5 authored by Ashay Jaiswal's avatar Ashay Jaiswal
Browse files

power: smb1355: fix DT parsing logic



Fix DT parsing function to return success for
optional properties.

CRs-Fixed: 2166077
Change-Id: I628f674e586c298847c844a47f329c67bf3d1d06
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent be27e35c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
/* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -449,7 +449,7 @@ static int smb1355_parse_dt(struct smb1355 *chip)
	if (of_property_read_bool(node, "qcom,stacked-batfet"))
		chip->dt.pl_batfet_mode = POWER_SUPPLY_PL_STACKED_BATFET;

	return rc;
	return 0;
}

/*****************************