aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/asus_atk0110.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/hwmon/asus_atk0110.c b/drivers/hwmon/asus_atk0110.c
index 4000fee9d989..351d1f4593e7 100644
--- a/drivers/hwmon/asus_atk0110.c
+++ b/drivers/hwmon/asus_atk0110.c
@@ -38,7 +38,8 @@ static const struct dmi_system_id __initconst atk_force_new_if[] = {
38 { } 38 { }
39}; 39};
40 40
41/* Minimum time between readings, enforced in order to avoid 41/*
42 * Minimum time between readings, enforced in order to avoid
42 * hogging the CPU. 43 * hogging the CPU.
43 */ 44 */
44#define CACHE_TIME HZ 45#define CACHE_TIME HZ
@@ -161,7 +162,8 @@ struct atk_sensor_data {
161 char const *acpi_name; 162 char const *acpi_name;
162}; 163};
163 164
164/* Return buffer format: 165/*
166 * Return buffer format:
165 * [0-3] "value" is valid flag 167 * [0-3] "value" is valid flag
166 * [4-7] value 168 * [4-7] value
167 * [8- ] unknown stuff on newer mobos 169 * [8- ] unknown stuff on newer mobos
@@ -310,7 +312,8 @@ static union acpi_object *atk_get_pack_member(struct atk_data *data,
310} 312}
311 313
312 314
313/* New package format is: 315/*
316 * New package format is:
314 * - flag (int) 317 * - flag (int)
315 * class - used for de-muxing the request to the correct GITn 318 * class - used for de-muxing the request to the correct GITn
316 * type (volt, temp, fan) 319 * type (volt, temp, fan)
@@ -613,7 +616,8 @@ static int atk_read_value_new(struct atk_sensor_data *sensor, u64 *value)
613 616
614 buf = (struct atk_acpi_ret_buffer *)obj->buffer.pointer; 617 buf = (struct atk_acpi_ret_buffer *)obj->buffer.pointer;
615 if (buf->flags == 0) { 618 if (buf->flags == 0) {
616 /* The reading is not valid, possible causes: 619 /*
620 * The reading is not valid, possible causes:
617 * - sensor failure 621 * - sensor failure
618 * - enumeration was FUBAR (and we didn't notice) 622 * - enumeration was FUBAR (and we didn't notice)
619 */ 623 */
@@ -1311,7 +1315,8 @@ static int atk_probe_if(struct atk_data *data)
1311 dev_dbg(dev, "method " METHOD_WRITE " not found: %s\n", 1315 dev_dbg(dev, "method " METHOD_WRITE " not found: %s\n",
1312 acpi_format_exception(status)); 1316 acpi_format_exception(status));
1313 1317
1314 /* Check for hwmon methods: first check "old" style methods; note that 1318 /*
1319 * Check for hwmon methods: first check "old" style methods; note that
1315 * both may be present: in this case we stick to the old interface; 1320 * both may be present: in this case we stick to the old interface;
1316 * analysis of multiple DSDTs indicates that when both interfaces 1321 * analysis of multiple DSDTs indicates that when both interfaces
1317 * are present the new one (GGRP/GITM) is not functional. 1322 * are present the new one (GGRP/GITM) is not functional.