summaryrefslogtreecommitdiff
path: root/drivers/misc/lattice-ecp3-config.c
diff options
context:
space:
mode:
authorJosé Expósito <jose.exposito89@gmail.com>2022-12-26 13:57:36 +0100
committerJiri Kosina <jkosina@suse.cz>2023-01-18 09:47:04 +0100
commitf5379a01d6617c887db4ba81732250725ac0bec5 (patch)
treefe6ce2a9bf7fd2f22e873aafcc249d7115ef7a26 /drivers/misc/lattice-ecp3-config.c
parent9266a88156d1fbb8e50d6eeff7bac44ad4eaecc2 (diff)
HID: uclogic: Use KUNIT_EXPECT_MEMEQ
Commit b8a926bea8b1 ("kunit: Introduce KUNIT_EXPECT_MEMEQ and KUNIT_EXPECT_MEMNEQ macros") introduced a new macro to compare blocks of memory and, if the test fails, print the result in a human friendly format. For example, this is the output of a test failure: Expected res == params->expected, but res == 01 02 aa 00 00 00 03 bb 00 <00> 00 04 05 params->expected == 01 02 aa 00 00 00 03 bb 00 <01> 00 04 05 Use this new macro to replace KUNIT_EXPECT_EQ + memcmp. Signed-off-by: José Expósito <jose.exposito89@gmail.com> Reviewed-by: Maíra Canal <mairacanal@riseup.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/misc/lattice-ecp3-config.c')
0 files changed, 0 insertions, 0 deletions