linux/drivers/platform/chrome/wilco_ec
Bernardo Perez Priego ad35da94b6 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>
2020-04-13 16:36:54 +02:00
..
core.c platform/chrome: wilco_ec: Add newlines to printks 2020-01-22 10:10:44 +01:00
debugfs.c platform/chrome: wilco_ec: Provide correct output format to 'h1_gpio' file 2020-04-13 16:36:54 +02:00
event.c platform/chrome: wilco_ec: event: Replace zero-length array with flexible-array member 2020-03-22 11:15:28 +01:00
Kconfig platform/chrome: wilco_ec: Allow wilco to be compiled in COMPILE_TEST 2020-01-22 10:10:44 +01:00
keyboard_leds.c platform/chrome: wilco_ec: Add newlines to printks 2020-01-22 10:10:44 +01:00
mailbox.c platform/chrome: wilco_ec: Add newlines to printks 2020-01-22 10:10:44 +01:00
Makefile platform/chrome: wilco_ec: Add keyboard backlight LED support 2019-11-19 18:12:19 +01:00
properties.c platform/chrome: wilco_ec: Platform data shouldn't include kernel.h 2020-02-11 10:32:50 +01:00
sysfs.c platform/chrome: wilco_ec: Platform data shouldn't include kernel.h 2020-02-11 10:32:50 +01:00
telemetry.c platform/chrome: wilco_ec: Add newlines to printks 2020-01-22 10:10:44 +01:00