diff options
author | Niklas Cassel <niklas.cassel@linaro.org> | 2018-07-16 15:32:53 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-07-20 18:40:54 +0200 |
commit | 9689ca0af345b82d06a02e45cc214c1b8bad9e8d (patch) | |
tree | ae878848f2ca9b06311c394bed554c46baba35e5 /drivers/regulator/qcom_spmi-regulator.c | |
parent | regulator: qcom_spmi: Use correct regmap when checking for error (diff) | |
download | linux-9689ca0af345b82d06a02e45cc214c1b8bad9e8d.tar.xz linux-9689ca0af345b82d06a02e45cc214c1b8bad9e8d.zip |
regulator: qcom_spmi: Do not initialise static to NULL
Fix the following checkpatch error:
ERROR: do not initialise statics to NULL
+static struct regmap *saw_regmap = NULL;
Fixes: 0caecaa87202 ("regulator: qcom_spmi: Add support for SAW")
Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/qcom_spmi-regulator.c')
-rw-r--r-- | drivers/regulator/qcom_spmi-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/regulator/qcom_spmi-regulator.c index ba3d5e63ada6..5246f5b870c2 100644 --- a/drivers/regulator/qcom_spmi-regulator.c +++ b/drivers/regulator/qcom_spmi-regulator.c @@ -1060,7 +1060,7 @@ static irqreturn_t spmi_regulator_vs_ocp_isr(int irq, void *data) #define SAW3_AVS_CTL_TGGL_MASK 0x8000000 #define SAW3_AVS_CTL_CLEAR_MASK 0x7efc00 -static struct regmap *saw_regmap = NULL; +static struct regmap *saw_regmap; static void spmi_saw_set_vdd(void *data) { |