Skip to content
Commit ad35da94 authored by Bernardo Perez Priego's avatar Bernardo Perez Priego Committed by Enric Balletbo i Serra
Browse files

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: default avatarBernardo Perez Priego <bernardo.perez.priego@intel.com>
Signed-off-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
parent 1c7c5134
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment