linux-stable/drivers/platform
Tzung-Bi Shih cce5d55180 platform/chrome: cros_ec_proto: add Kunit test for getting legacy info
cros_ec_get_proto_info_legacy() expects to receive
sizeof(struct ec_response_hello) from send_command().  The payload is
valid only if the return value is positive.

Add a Kunit test for returning 0 from send_command() in
cros_ec_get_proto_info_legacy().

Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220609084957.3684698-12-tzungbi@kernel.org
2022-06-10 02:31:43 +00:00
..
chrome platform/chrome: cros_ec_proto: add Kunit test for getting legacy info 2022-06-10 02:31:43 +00:00
goldfish platform: goldfish: pipe: Use platform_get_irq() to get the interrupt 2022-03-18 13:55:21 +01:00
mellanox platform/mellanox: Add support for new SN2201 system 2022-05-12 15:35:29 +02:00
mips MIPS: Loongson: Use hwmon_device_register_with_groups() to register hwmon 2022-05-12 17:58:05 +02:00
olpc spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
surface platform/surface: aggregator: Fix initialization order when compiling as builtin module 2022-05-06 13:02:46 +02:00
x86 platform/x86/intel/ifs: Add CPU_SUP_INTEL dependency 2022-05-19 19:46:25 +02:00
Kconfig platform: Add Surface platform directory 2020-10-27 12:51:03 +01:00
Makefile platform: Add Surface platform directory 2020-10-27 12:51:03 +01:00