platform/chrome: wilco_ec: Provide correct output format to 'h1_gpio' file
authorBernardo Perez Priego <bernardo.perez.priego@intel.com>
Thu, 2 Apr 2020 22:33:30 +0000 (15:33 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Mon, 13 Apr 2020 14:36:54 +0000 (16:36 +0200)
commitad35da94b61785ddc1186095c3e488c5c0af6bd2
tree68b32b4c66ed844daa39789b84f6323f994f5467
parent1c7c51347f2e2ff5920cee1b54c683e2af06bd81
platform/chrome: wilco_ec: Provide correct output format to 'h1_gpio' file

Function 'h1_gpio_get' is receiving 'val' parameter of type u64,
this is being passed to 'send_ec_cmd' as type u8, thus, result
is stored in least significant byte. Due to output format,
the whole 'val' value was being displayed when any of the most
significant bytes are different than zero.

This fix will make sure only least significant byte is displayed
regardless of remaining bytes value.

Signed-off-by: Bernardo Perez Priego <bernardo.perez.priego@intel.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/wilco_ec/debugfs.c