mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
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:
parent
cdf0b87281
commit
24671234f1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue