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

Commit ff079210 authored by Umang Agrawal's avatar Umang Agrawal Committed by Guru Das Srinagesh
Browse files

power: smb1355: Disable SMB1355 on probe



Currently, we assume SMB1355 is configured in command control mode
by default. Fix this assumption by configuring SMB1355 to command
control mode on probe.

Change-Id: I357dc750724c264f52fd058a9f851b65df16a423
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
parent c293f169
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
 */

#define pr_fmt(fmt) "SMB1355: %s: " fmt, __func__
@@ -1357,7 +1357,7 @@ static int smb1355_probe(struct platform_device *pdev)
	chip->c_charger_temp_max = -EINVAL;
	mutex_init(&chip->write_lock);
	INIT_DELAYED_WORK(&chip->die_temp_work, die_temp_work);
	chip->disabled = true;
	chip->disabled = false;
	chip->die_temp_deciDegC = -EINVAL;

	chip->regmap = dev_get_regmap(chip->dev->parent, NULL);