net: rfkill: Fix sparse warning in rfkill-regulator.c
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 19 Feb 2013 09:57:48 +0000 (15:27 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Mar 2013 15:35:41 +0000 (16:35 +0100)
'rfkill_regulator_ops' is used only in this file. Hence make it static.
Silences the following warning:
net/rfkill/rfkill-regulator.c:54:19: warning:
symbol 'rfkill_regulator_ops' was not declared. Should it be static?

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/rfkill/rfkill-regulator.c

index 4b5ab21..d11ac79 100644 (file)
@@ -51,7 +51,7 @@ static int rfkill_regulator_set_block(void *data, bool blocked)
        return 0;
 }
 
-struct rfkill_ops rfkill_regulator_ops = {
+static struct rfkill_ops rfkill_regulator_ops = {
        .set_block = rfkill_regulator_set_block,
 };