Thermal/int340x: Fix few typos and kernel warn message
authorSumeet Pawnikar <sumeet.r.pawnikar@intel.com>
Fri, 4 Aug 2017 18:13:49 +0000 (23:43 +0530)
committerZhang Rui <rui.zhang@intel.com>
Tue, 8 Aug 2017 13:36:34 +0000 (21:36 +0800)
This patch fix the few typos in trt structure. Also, update
kernel warn message for failed to get device name from acpi
handle.

Signed-off-by: Sumeet Pawnikar <sumeet.r.pawnikar@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/int340x_thermal/acpi_thermal_rel.c
drivers/thermal/int340x_thermal/acpi_thermal_rel.h

index 51ceb80212a7a74e8afb7edda170c120361e648f..c719167e9f2829dedea376e21b51a773559e5866 100644 (file)
@@ -228,7 +228,7 @@ static void get_single_name(acpi_handle handle, char *name)
        struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER};
 
        if (ACPI_FAILURE(acpi_get_name(handle, ACPI_SINGLE_NAME, &buffer)))
-               pr_warn("Failed get name from handle\n");
+               pr_warn("Failed to get device name from acpi handle\n");
        else {
                memcpy(name, buffer.pointer, ACPI_NAME_SIZE);
                kfree(buffer.pointer);
index f00700bc9d79fe3e2a481eb7c7c012af5956ee24..65075b1743294db65e8154b3eedf6bda8aa8f8a6 100644 (file)
@@ -34,10 +34,10 @@ struct trt {
        acpi_handle target;
        u64 influence;
        u64 sample_period;
-       u64 reverved1;
-       u64 reverved2;
-       u64 reverved3;
-       u64 reverved4;
+       u64 reserved1;
+       u64 reserved2;
+       u64 reserved3;
+       u64 reserved4;
 } __packed;
 
 #define ACPI_NR_ART_ELEMENTS 13