mbox series

[0/2] HID: fix test for CONFIG_HID_KUNIT_TEST=m

Message ID 20241208-hid-ifdef-kunit-v1-0-cbea6077a233@weissschuh.net (mailing list archive)
Headers show
Series HID: fix test for CONFIG_HID_KUNIT_TEST=m | expand

Message

Thomas Weißschuh Dec. 8, 2024, 12:01 p.m. UTC
If CONFIG_HID_KUNIT_TEST is set to "m", the #ifdef test does not work.
Switch to IS_ENABLED() which works for both "m" and "y".

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (2):
      HID: input: fix test for CONFIG_HID_KUNIT_TEST=m
      HID: uclogic: fix test for CONFIG_HID_KUNIT_TEST=m

 drivers/hid/hid-input.c          | 2 +-
 drivers/hid/hid-uclogic-core.c   | 2 +-
 drivers/hid/hid-uclogic-params.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
base-commit: 7503345ac5f5e82fd9a36d6e6b447c016376403a
change-id: 20241208-hid-ifdef-kunit-75643b52239a

Best regards,