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

Commit 24671234 authored by David Collins's avatar David Collins
Browse files

platform: msm: qpnp-revid: replace #ifdef with #if IS_ENABLED()



Replace #ifdef CONFIG_QPNP_REVID with #if
IS_ENABLED(CONFIG_QPNP_REVID).  This fixes a function
redefinition error when compiling the qpnp-revid driver as
a module with CONFIG_QPNP_REVID=m in a defconfig file.

Change-Id: Ie1907010b8bbcd13fdc301f5647af9e081f6088a
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent cdf0b872
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -330,7 +330,7 @@ struct pmic_revid_data {
	int		tp_rev;
};

#ifdef CONFIG_QPNP_REVID
#if IS_ENABLED(CONFIG_QPNP_REVID)
struct pmic_revid_data *get_revid_data(struct device_node *dev_node);
#else
static inline