HID: uclogic: KUnit best practices and naming conventions
authorJosé Expósito <jose.exposito89@gmail.com>
Mon, 15 Aug 2022 14:29:49 +0000 (16:29 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 25 Aug 2022 08:26:31 +0000 (10:26 +0200)
commit08809e482a1c44d95d1322b9fbc94c8e58ae9015
tree23458a84687c21461ae505b9b184c08173fd86fb
parent609174edeb758d1e2d713e7ab4e09ea8d45aa4f7
HID: uclogic: KUnit best practices and naming conventions

The KUnit documentation [1] suggests allowing build tests as a module.

In addition, it is recommended [2] to use snake case names for
kunit_suite and test cases.

Change the Kconfig entry from bool to tristate and stick to the naming
conventions to avoid style issues with future tests.

Link: https://docs.kernel.org/dev-tools/kunit/style.html#test-kconfig-entries
Link: https://www.kernel.org/doc/html/latest/dev-tools/kunit/style.html
Acked-by: Daniel Latypov <dlatypov@google.com>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig
drivers/hid/Makefile
drivers/hid/hid-uclogic-rdesc-test.c