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: David Collins <collinsd@codeaurora.org>
This commit is contained in:
David Collins 2019-11-06 16:07:23 -08:00
commit 24671234f1

View file

@ -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