Commit f0d96239 authored by Colin Ian King's avatar Colin Ian King Committed by Andy Shevchenko

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: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 36c282b3
...@@ -42,7 +42,7 @@ struct cht_int33fe_data { ...@@ -42,7 +42,7 @@ struct cht_int33fe_data {
* These helpers are used to work around this by checking if an i2c-client * These helpers are used to work around this by checking if an i2c-client
* for the max17047 has already been registered. * 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 i2c_client **max17047 = data;
struct acpi_device *adev; struct acpi_device *adev;
...@@ -62,7 +62,7 @@ int cht_int33fe_check_for_max17047(struct device *dev, void *data) ...@@ -62,7 +62,7 @@ int cht_int33fe_check_for_max17047(struct device *dev, void *data)
return 1; return 1;
} }
struct i2c_client *cht_int33fe_find_max17047(void) static struct i2c_client *cht_int33fe_find_max17047(void)
{ {
struct i2c_client *max17047 = NULL; struct i2c_client *max17047 = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment