mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
hwmon: (asus_atk0110) Fix compiler warning
atk_sensor_type is only used when DEBUG is defined. Signed-off-by: Luca Tettamanti <kronos.it@gmail.com> Signed-off-by: Jean Delvare <khali@linux-fr.org>
This commit is contained in:
parent
8c9ed899b4
commit
b9008708f2
@ -348,6 +348,7 @@ static int validate_hwmon_pack(struct atk_data *data, union acpi_object *obj)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
static char const *atk_sensor_type(union acpi_object *flags)
|
||||
{
|
||||
u64 type = flags->integer.value & ATK_TYPE_MASK;
|
||||
@ -370,6 +371,7 @@ static char const *atk_sensor_type(union acpi_object *flags)
|
||||
|
||||
return what;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void atk_print_sensor(struct atk_data *data, union acpi_object *obj)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user