提交 b9008708 编写于 作者: L Luca Tettamanti 提交者: Jean Delvare

hwmon: (asus_atk0110) Fix compiler warning

atk_sensor_type is only used when DEBUG is defined.
Signed-off-by: NLuca Tettamanti <kronos.it@gmail.com>
Signed-off-by: NJean Delvare <khali@linux-fr.org>
上级 8c9ed899
...@@ -348,6 +348,7 @@ static int validate_hwmon_pack(struct atk_data *data, union acpi_object *obj) ...@@ -348,6 +348,7 @@ static int validate_hwmon_pack(struct atk_data *data, union acpi_object *obj)
return 0; return 0;
} }
#ifdef DEBUG
static char const *atk_sensor_type(union acpi_object *flags) static char const *atk_sensor_type(union acpi_object *flags)
{ {
u64 type = flags->integer.value & ATK_TYPE_MASK; u64 type = flags->integer.value & ATK_TYPE_MASK;
...@@ -370,6 +371,7 @@ static char const *atk_sensor_type(union acpi_object *flags) ...@@ -370,6 +371,7 @@ static char const *atk_sensor_type(union acpi_object *flags)
return what; return what;
} }
#endif
static void atk_print_sensor(struct atk_data *data, union acpi_object *obj) static void atk_print_sensor(struct atk_data *data, union acpi_object *obj)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册