From: Eduardo Valentin Date: Sat, 2 Jul 2016 01:02:09 +0000 (-0700) Subject: thermal: qcom: remove declare local symbols as static X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=cd40339d4424b3b31e0eb4ff60734e36825372ba;p=deliverable%2Flinux.git thermal: qcom: remove declare local symbols as static 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 Cc: Rajendra Nayak Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin Signed-off-by: Zhang Rui --- diff --git a/drivers/thermal/qcom/tsens-8916.c b/drivers/thermal/qcom/tsens-8916.c index beb3afaa3f8f..fdf561b8b81d 100644 --- a/drivers/thermal/qcom/tsens-8916.c +++ b/drivers/thermal/qcom/tsens-8916.c @@ -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, diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom/tsens-8960.c index 1d60916395c3..0451277d3a8f 100644 --- a/drivers/thermal/qcom/tsens-8960.c +++ b/drivers/thermal/qcom/tsens-8960.c @@ -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, diff --git a/drivers/thermal/qcom/tsens-8974.c b/drivers/thermal/qcom/tsens-8974.c index da3ca4c18999..9baf77e8cbe3 100644 --- a/drivers/thermal/qcom/tsens-8974.c +++ b/drivers/thermal/qcom/tsens-8974.c @@ -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, diff --git a/drivers/thermal/qcom/tsens-8996.c b/drivers/thermal/qcom/tsens-8996.c index e2e12745ad21..e1f77818d8fa 100644 --- a/drivers/thermal/qcom/tsens-8996.c +++ b/drivers/thermal/qcom/tsens-8996.c @@ -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, };