提交 066d7f32 编写于 作者: W Wei Yongjun 提交者: Andy Shevchenko

platform/x86: thinkpad_acpi: Make some symbols static

The sparse tool complains as follows:

drivers/platform/x86/thinkpad_acpi.c:9636:25: warning:
 symbol 'dev_attr_charge_start_threshold' was not declared. Should it be static?
drivers/platform/x86/thinkpad_acpi.c:9642:25: warning:
 symbol 'dev_attr_charge_stop_threshold' was not declared. Should it be static?

Those variables are not used outside of thinkpad_acpi.c, so this
commit marks them static.

Fixes: e3392953 ("platform/x86: thinkpad_acpi: use standard charge control attribute names")
Reported-by: NHulk Robot <hulkci@huawei.com>
Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
上级 61781298
...@@ -9633,13 +9633,13 @@ static ssize_t charge_control_end_threshold_store(struct device *dev, ...@@ -9633,13 +9633,13 @@ static ssize_t charge_control_end_threshold_store(struct device *dev,
static DEVICE_ATTR_RW(charge_control_start_threshold); static DEVICE_ATTR_RW(charge_control_start_threshold);
static DEVICE_ATTR_RW(charge_control_end_threshold); static DEVICE_ATTR_RW(charge_control_end_threshold);
struct device_attribute dev_attr_charge_start_threshold = __ATTR( static struct device_attribute dev_attr_charge_start_threshold = __ATTR(
charge_start_threshold, charge_start_threshold,
0644, 0644,
charge_control_start_threshold_show, charge_control_start_threshold_show,
charge_control_start_threshold_store charge_control_start_threshold_store
); );
struct device_attribute dev_attr_charge_stop_threshold = __ATTR( static struct device_attribute dev_attr_charge_stop_threshold = __ATTR(
charge_stop_threshold, charge_stop_threshold,
0644, 0644,
charge_control_end_threshold_show, charge_control_end_threshold_show,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册