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 4b5ab21ecb24a0732d971f3ce08256a96d496125..d11ac79246e46d8388d6bee79de663928aa0f86e 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,
 };