]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Thu, 12 Apr 2018 10:31:06 +0000 (12:31 +0200)
commit110909d7a0c922bac1c9053605c842e02a0f20e9
treee27ab28d6e4c3e69ab6d067c13234432fa0043a3
parent03e965ebd983f659ac7e242ce7f4b7f3d3ab5867
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