summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/st/st_thermal_memmap.c
diff options
context:
space:
mode:
authorEduardo Valentin <edubezval@gmail.com>2015-04-07 13:42:12 -0700
committerEduardo Valentin <edubezval@gmail.com>2015-04-07 13:43:28 -0700
commit541d529f9845d249d1cb84f1b395e48f0a117e3f (patch)
tree0dfceb1802ff81d0dbd08020f26a54a99283ee12 /drivers/thermal/st/st_thermal_memmap.c
parentd877a62b20f0592971a3c434486b58c425492732 (diff)
downloadlinux-541d529f9845d249d1cb84f1b395e48f0a117e3f.tar.gz
linux-541d529f9845d249d1cb84f1b395e48f0a117e3f.tar.bz2
linux-541d529f9845d249d1cb84f1b395e48f0a117e3f.zip
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/st_thermal_memmap.c')
-rw-r--r--drivers/thermal/st/st_thermal_memmap.c8
1 files changed, 4 insertions, 4 deletions
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 = {
};
/* Compatible device data stih416 mpe thermal sensor */
-const struct st_thermal_compat_data st_416mpe_cdata = {
+static const struct st_thermal_compat_data st_416mpe_cdata = {
.reg_fields = st_mmap_thermal_regfields,
.ops = &st_mmap_sensor_ops,
.calibration_val = 14,
@@ -166,7 +166,7 @@ const struct st_thermal_compat_data st_416mpe_cdata = {
};
/* Compatible device data stih407 thermal sensor */
-const struct st_thermal_compat_data st_407_cdata = {
+static const struct st_thermal_compat_data st_407_cdata = {
.reg_fields = st_mmap_thermal_regfields,
.ops = &st_mmap_sensor_ops,
.calibration_val = 16,
@@ -181,12 +181,12 @@ static const struct of_device_id st_mmap_thermal_of_match[] = {
};
MODULE_DEVICE_TABLE(of, st_mmap_thermal_of_match);
-int st_mmap_probe(struct platform_device *pdev)
+static int st_mmap_probe(struct platform_device *pdev)
{
return st_thermal_register(pdev, st_mmap_thermal_of_match);
}
-int st_mmap_remove(struct platform_device *pdev)
+static int st_mmap_remove(struct platform_device *pdev)
{
return st_thermal_unregister(pdev);
}