aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2015-07-22 15:30:02 +0100
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2016-05-17 18:02:42 +0100
commit7f35d928498e2aaee6df9e18e46ad7d4b8ab4e0a (patch)
tree899222b3db035035e0f96e7ca78b5a712eca83ae
parent8b8ef89a960f3567837b5b50c086ba0c1c6f2991 (diff)
regulator: smd: Add correct ifdef flag for stubs
If built as module would throw up with drivers/regulator/qcom_smd-regulator.c:67:5: error: redefinition of 'qcom_rpm_set_floor' drivers/regulator/qcom_smd-regulator.c:89:5: error: redefinition of 'qcom_rpm_set_corner' Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
-rw-r--r--include/linux/regulator/qcom_smd-regulator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/regulator/qcom_smd-regulator.h b/include/linux/regulator/qcom_smd-regulator.h
index a71b6adc64ba..16029448d6b6 100644
--- a/include/linux/regulator/qcom_smd-regulator.h
+++ b/include/linux/regulator/qcom_smd-regulator.h
@@ -12,7 +12,7 @@
#ifndef __QCOM_SMD_REGULATOR_H_
#define __QCOM_SMD_REGULATOR_H_
-#ifdef CONFIG_REGULATOR_QCOM_SMD_RPM
+#if IS_ENABLED(CONFIG_REGULATOR_QCOM_SMD_RPM)
int qcom_rpm_set_floor(struct regulator *regulator, int floor);
int qcom_rpm_set_corner(struct regulator *regulator, int corner);
#else