summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorColin Ian King2017-10-11 11:30:10 +0200
committerAndy Shevchenko2017-10-23 19:01:52 +0200
commitf0d962392abc5b41d66ac4f7b723c82ba4f80582 (patch)
treefdb14d567c931bba23fd8458469d43736d886574 /drivers/platform
parentplatform/x86: mlx-platform: make a couple of structures static (diff)
downloadkernel-qcow2-linux-f0d962392abc5b41d66ac4f7b723c82ba4f80582.tar.gz
kernel-qcow2-linux-f0d962392abc5b41d66ac4f7b723c82ba4f80582.tar.xz
kernel-qcow2-linux-f0d962392abc5b41d66ac4f7b723c82ba4f80582.zip
platform/x86: intel_cht_int33fe: make a couple of local functions static
The functions cht_int33fe_check_for_max17047 and cht_int33fe_find_max17047 are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: symbol 'cht_int33fe_check_for_max17047' was not declared. Should it be static? symbol 'cht_int33fe_find_max17047' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/intel_cht_int33fe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/intel_cht_int33fe.c b/drivers/platform/x86/intel_cht_int33fe.c
index 94716b2fbc00..286c6207765d 100644
--- a/drivers/platform/x86/intel_cht_int33fe.c
+++ b/drivers/platform/x86/intel_cht_int33fe.c
@@ -42,7 +42,7 @@ struct cht_int33fe_data {
* These helpers are used to work around this by checking if an i2c-client
* for the max17047 has already been registered.
*/
-int cht_int33fe_check_for_max17047(struct device *dev, void *data)
+static int cht_int33fe_check_for_max17047(struct device *dev, void *data)
{
struct i2c_client **max17047 = data;
struct acpi_device *adev;
@@ -62,7 +62,7 @@ int cht_int33fe_check_for_max17047(struct device *dev, void *data)
return 1;
}
-struct i2c_client *cht_int33fe_find_max17047(void)
+static struct i2c_client *cht_int33fe_find_max17047(void)
{
struct i2c_client *max17047 = NULL;