]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
thermal: qcom: remove declare local symbols as static
authorEduardo Valentin <edubezval@gmail.com>
Sat, 2 Jul 2016 01:02:09 +0000 (18:02 -0700)
committerZhang Rui <rui.zhang@intel.com>
Tue, 27 Sep 2016 06:02:16 +0000 (14:02 +0800)
Trivial: remove the following:
drivers/thermal/qcom/tsens-8916.c:103:24: warning: symbol 'ops_8916' was not declared. Should it be static?
drivers/thermal/qcom/tsens-8996.c:76:24: warning: symbol 'ops_8996' was not declared. Should it be static?
drivers/thermal/qcom/tsens-8974.c:235:24: warning: symbol 'ops_8974' was not declared. Should it be static?
drivers/thermal/qcom/tsens-8960.c:279:24: warning: symbol 'ops_8960' was not declared. Should it be static?

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Rajendra Nayak <rnayak@codeaurora.org>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/qcom/tsens-8916.c
drivers/thermal/qcom/tsens-8960.c
drivers/thermal/qcom/tsens-8974.c
drivers/thermal/qcom/tsens-8996.c

index beb3afaa3f8fdd475cc6f4fa977f754e4659c760..fdf561b8b81d6b711d95e0fa2d0bba92395ea378 100644 (file)
@@ -100,7 +100,7 @@ static int calibrate_8916(struct tsens_device *tmdev)
        return 0;
 }
 
-const struct tsens_ops ops_8916 = {
+static const struct tsens_ops ops_8916 = {
        .init           = init_common,
        .calibrate      = calibrate_8916,
        .get_temp       = get_temp_common,
index 1d60916395c3b6c6c2f8cc9a1d143709688a72a5..0451277d3a8f0fbb8246d550e887d9a5678668a3 100644 (file)
@@ -276,7 +276,7 @@ static int get_temp_8960(struct tsens_device *tmdev, int id, int *temp)
        return -ETIMEDOUT;
 }
 
-const struct tsens_ops ops_8960 = {
+static const struct tsens_ops ops_8960 = {
        .init           = init_8960,
        .calibrate      = calibrate_8960,
        .get_temp       = get_temp_8960,
index da3ca4c1899990a26df9309094e6e79f0fdf9e0f..9baf77e8cbe369c006a012067f050f585264866c 100644 (file)
@@ -232,7 +232,7 @@ static int calibrate_8974(struct tsens_device *tmdev)
        return 0;
 }
 
-const struct tsens_ops ops_8974 = {
+static const struct tsens_ops ops_8974 = {
        .init           = init_common,
        .calibrate      = calibrate_8974,
        .get_temp       = get_temp_common,
index e2e12745ad2141104389cc27ee295f1d70b45116..e1f77818d8fa3bd4cf4608e47820b1974f4e65fb 100644 (file)
@@ -73,7 +73,7 @@ done:
        return 0;
 }
 
-const struct tsens_ops ops_8996 = {
+static const struct tsens_ops ops_8996 = {
        .init           = init_common,
        .get_temp       = get_temp_8996,
 };