aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal/st
diff options
context:
space:
mode:
authorEduardo Valentin <edubezval@gmail.com>2015-04-07 16:42:12 -0400
committerEduardo Valentin <edubezval@gmail.com>2015-04-07 16:43:28 -0400
commit541d529f9845d249d1cb84f1b395e48f0a117e3f (patch)
tree0dfceb1802ff81d0dbd08020f26a54a99283ee12 /drivers/thermal/st
parentd877a62b20f0592971a3c434486b58c425492732 (diff)
drivers: thermal: st: remove several sparse warnings
Simple patch to make symbols static. Symbols that are not shared with other parts of the kernel can be made static. This change also removes several sparse complains. Cc: Zhang Rui <rui.zhang@intel.com> Cc: Lee Jones <lee.jones@linaro.org> Cc: Pavel Machek <pavel@ucw.cz> Cc: Ajit Pal Singh <ajitpal.singh@st.com> Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal/st')
-rw-r--r--drivers/thermal/st/st_thermal.c2
-rw-r--r--drivers/thermal/st/st_thermal_memmap.c8
-rw-r--r--drivers/thermal/st/st_thermal_syscfg.c12
3 files changed, 11 insertions, 11 deletions
diff --git a/drivers/thermal/st/st_thermal.c b/drivers/thermal/st/st_thermal.c
index d1ec5804c0bb..76c515dd802b 100644
--- a/drivers/thermal/st/st_thermal.c
+++ b/drivers/thermal/st/st_thermal.c
@@ -25,7 +25,7 @@
25 * Function to allocate regfields which are common 25 * Function to allocate regfields which are common
26 * between syscfg and memory mapped based sensors 26 * between syscfg and memory mapped based sensors
27 */ 27 */
28int st_thermal_alloc_regfields(struct st_thermal_sensor *sensor) 28static int st_thermal_alloc_regfields(struct st_thermal_sensor *sensor)
29{ 29{
30 struct device *dev = sensor->dev; 30 struct device *dev = sensor->dev;
31 struct regmap *regmap = sensor->regmap; 31 struct regmap *regmap = sensor->regmap;
diff --git a/drivers/thermal/st/st_thermal_memmap.c b/drivers/thermal/st/st_thermal_memmap.c
index bd223398daf1..fc0c9e198710 100644
--- a/drivers/thermal/st/st_thermal_memmap.c
+++ b/drivers/thermal/st/st_thermal_memmap.c
@@ -157,7 +157,7 @@ static const struct st_thermal_sensor_ops st_mmap_sensor_ops = {
157}; 157};
158 158
159/* Compatible device data stih416 mpe thermal sensor */ 159/* Compatible device data stih416 mpe thermal sensor */
160const struct st_thermal_compat_data st_416mpe_cdata = { 160static const struct st_thermal_compat_data st_416mpe_cdata = {
161 .reg_fields = st_mmap_thermal_regfields, 161 .reg_fields = st_mmap_thermal_regfields,
162 .ops = &st_mmap_sensor_ops, 162 .ops = &st_mmap_sensor_ops,
163 .calibration_val = 14, 163 .calibration_val = 14,
@@ -166,7 +166,7 @@ const struct st_thermal_compat_data st_416mpe_cdata = {
166}; 166};
167 167
168/* Compatible device data stih407 thermal sensor */ 168/* Compatible device data stih407 thermal sensor */
169const struct st_thermal_compat_data st_407_cdata = { 169static const struct st_thermal_compat_data st_407_cdata = {
170 .reg_fields = st_mmap_thermal_regfields, 170 .reg_fields = st_mmap_thermal_regfields,
171 .ops = &st_mmap_sensor_ops, 171 .ops = &st_mmap_sensor_ops,
172 .calibration_val = 16, 172 .calibration_val = 16,
@@ -181,12 +181,12 @@ static const struct of_device_id st_mmap_thermal_of_match[] = {
181}; 181};
182MODULE_DEVICE_TABLE(of, st_mmap_thermal_of_match); 182MODULE_DEVICE_TABLE(of, st_mmap_thermal_of_match);
183 183
184int st_mmap_probe(struct platform_device *pdev) 184static int st_mmap_probe(struct platform_device *pdev)
185{ 185{
186 return st_thermal_register(pdev, st_mmap_thermal_of_match); 186 return st_thermal_register(pdev, st_mmap_thermal_of_match);
187} 187}
188 188
189int st_mmap_remove(struct platform_device *pdev) 189static int st_mmap_remove(struct platform_device *pdev)
190{ 190{
191 return st_thermal_unregister(pdev); 191 return st_thermal_unregister(pdev);
192} 192}
diff --git a/drivers/thermal/st/st_thermal_syscfg.c b/drivers/thermal/st/st_thermal_syscfg.c
index 65eab7212d57..3df5b7890703 100644
--- a/drivers/thermal/st/st_thermal_syscfg.c
+++ b/drivers/thermal/st/st_thermal_syscfg.c
@@ -104,7 +104,7 @@ static const struct st_thermal_sensor_ops st_syscfg_sensor_ops = {
104}; 104};
105 105
106/* Compatible device data for stih415 sas thermal sensor */ 106/* Compatible device data for stih415 sas thermal sensor */
107const struct st_thermal_compat_data st_415sas_cdata = { 107static const struct st_thermal_compat_data st_415sas_cdata = {
108 .sys_compat = "st,stih415-front-syscfg", 108 .sys_compat = "st,stih415-front-syscfg",
109 .reg_fields = st_415sas_regfields, 109 .reg_fields = st_415sas_regfields,
110 .ops = &st_syscfg_sensor_ops, 110 .ops = &st_syscfg_sensor_ops,
@@ -114,7 +114,7 @@ const struct st_thermal_compat_data st_415sas_cdata = {
114}; 114};
115 115
116/* Compatible device data for stih415 mpe thermal sensor */ 116/* Compatible device data for stih415 mpe thermal sensor */
117const struct st_thermal_compat_data st_415mpe_cdata = { 117static const struct st_thermal_compat_data st_415mpe_cdata = {
118 .sys_compat = "st,stih415-system-syscfg", 118 .sys_compat = "st,stih415-system-syscfg",
119 .reg_fields = st_415mpe_regfields, 119 .reg_fields = st_415mpe_regfields,
120 .ops = &st_syscfg_sensor_ops, 120 .ops = &st_syscfg_sensor_ops,
@@ -124,7 +124,7 @@ const struct st_thermal_compat_data st_415mpe_cdata = {
124}; 124};
125 125
126/* Compatible device data for stih416 sas thermal sensor */ 126/* Compatible device data for stih416 sas thermal sensor */
127const struct st_thermal_compat_data st_416sas_cdata = { 127static const struct st_thermal_compat_data st_416sas_cdata = {
128 .sys_compat = "st,stih416-front-syscfg", 128 .sys_compat = "st,stih416-front-syscfg",
129 .reg_fields = st_416sas_regfields, 129 .reg_fields = st_416sas_regfields,
130 .ops = &st_syscfg_sensor_ops, 130 .ops = &st_syscfg_sensor_ops,
@@ -134,7 +134,7 @@ const struct st_thermal_compat_data st_416sas_cdata = {
134}; 134};
135 135
136/* Compatible device data for stid127 thermal sensor */ 136/* Compatible device data for stid127 thermal sensor */
137const struct st_thermal_compat_data st_127_cdata = { 137static const struct st_thermal_compat_data st_127_cdata = {
138 .sys_compat = "st,stid127-cpu-syscfg", 138 .sys_compat = "st,stid127-cpu-syscfg",
139 .reg_fields = st_127_regfields, 139 .reg_fields = st_127_regfields,
140 .ops = &st_syscfg_sensor_ops, 140 .ops = &st_syscfg_sensor_ops,
@@ -152,12 +152,12 @@ static const struct of_device_id st_syscfg_thermal_of_match[] = {
152}; 152};
153MODULE_DEVICE_TABLE(of, st_syscfg_thermal_of_match); 153MODULE_DEVICE_TABLE(of, st_syscfg_thermal_of_match);
154 154
155int st_syscfg_probe(struct platform_device *pdev) 155static int st_syscfg_probe(struct platform_device *pdev)
156{ 156{
157 return st_thermal_register(pdev, st_syscfg_thermal_of_match); 157 return st_thermal_register(pdev, st_syscfg_thermal_of_match);
158} 158}
159 159
160int st_syscfg_remove(struct platform_device *pdev) 160static int st_syscfg_remove(struct platform_device *pdev)
161{ 161{
162 return st_thermal_unregister(pdev); 162 return st_thermal_unregister(pdev);
163} 163}