ACPI: EC: Fix debugfs_create_*() usage
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 2 Jan 2018 15:26:31 +0000 (16:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:48:10 +0000 (19:48 +0200)
commitb7fe48228d816c1ad7e1e90e2bff7d09d17e6642
tree48b5e58ebedd0bb8c64f32429b4016128e66f30a
parentc979024a1bb359988dc6b50a26dd3bb0789fd54f
ACPI: EC: Fix debugfs_create_*() usage

[ Upstream commit 3522f867c13b63cf62acdf1b8ca5664c549a716a ]

acpi_ec.gpe is "unsigned long", hence treating it as "u32" would expose
the wrong half on big-endian 64-bit systems.  Fix this by changing its
type to "u32" and removing the cast, as all other code already uses u32
or sometimes even only u8.

Fixes: 1195a098168fcacf (ACPI: Provide /sys/kernel/debug/ec/...)
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/ec.c
drivers/acpi/ec_sys.c
drivers/acpi/internal.h