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

Commit 7ae39500 authored by David Collins's avatar David Collins
Browse files

soc: qcom: qpnp-pbs: replace #ifdef with #if IS_ENABLED()



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

Change-Id: I2a6201a7a94423ce333c203c475dce319f922fdd
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent 24671234
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/* SPDX-License-Identifier: GPL-2.0-only */
/*
/*
 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 */
 */


#ifndef _QPNP_PBS_H
#ifndef _QPNP_PBS_H
#define _QPNP_PBS_H
#define _QPNP_PBS_H


#ifdef CONFIG_QPNP_PBS
#if IS_ENABLED(CONFIG_QPNP_PBS)
int qpnp_pbs_trigger_event(struct device_node *dev_node, u8 bitmap);
int qpnp_pbs_trigger_event(struct device_node *dev_node, u8 bitmap);
#else
#else
static inline int qpnp_pbs_trigger_event(struct device_node *dev_node,
static inline int qpnp_pbs_trigger_event(struct device_node *dev_node,