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

Commit f89a9c6f authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

msm: revid: add pmic names to the revid_data structure



Add the pmic names to the revid structure for consumers.

Change-Id: I4887a2bd736d2568d23b0e6dd774436e064379e9
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 72b55ec2
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -179,6 +179,11 @@ static int qpnp_revid_probe(struct spmi_device *spmi)
	revid_chip->data.pmic_subtype = pmic_subtype;
	revid_chip->data.pmic_type = pmic_type;

	if (pmic_subtype < ARRAY_SIZE(pmic_names))
		revid_chip->data.pmic_name = pmic_names[pmic_subtype];
	else
		revid_chip->data.pmic_name = pmic_names[0];

	mutex_lock(&revid_chips_lock);
	list_add(&revid_chip->link, &revid_chips);
	mutex_unlock(&revid_chips_lock);
+7 −6
Original line number Diff line number Diff line
@@ -161,6 +161,7 @@ struct pmic_revid_data {
	u8		rev4;
	u8		pmic_type;
	u8		pmic_subtype;
	const char	*pmic_name;
};

#ifdef CONFIG_QPNP_REVID