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-02-29 14:53:26 +0000
commitab42472b8f6950f8d50b666d7c2bff365624a7f3 (patch)
tree45ff8abb854259f1164359f1088ee8cc050f4c73
parent2b62843067342264210ff3183214dbe6d4b6d028 (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 a71b6adc64ba8..16029448d6b62 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