summaryrefslogtreecommitdiffstats
path: root/drivers/firewire/core-device.c
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2023-12-24 23:23:00 +0100
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>2024-01-08 01:36:56 +0100
commit1770d39d10dd4c7b867e8e9f88d0f23373df3773 (patch)
tree2028fbb9334f006899f254b44b662bce5ab78225 /drivers/firewire/core-device.c
parentfirewire: core: replace magic number with macro (diff)
downloadlinux-1770d39d10dd4c7b867e8e9f88d0f23373df3773.tar.xz
linux-1770d39d10dd4c7b867e8e9f88d0f23373df3773.zip
firewire: test: add KUnit test for device attributes
The traverse over CSR space results in attributes of node and unit devices. Any test of the traverse is useful. This commit adds a skeleton of KUnit test for the purpose. Link: https://lore.kernel.org/r/20231221134849.603857-4-o-takashi@sakamocchi.jp Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'drivers/firewire/core-device.c')
-rw-r--r--drivers/firewire/core-device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/firewire/core-device.c b/drivers/firewire/core-device.c
index 2c7c38510da3..37fdf820acf1 100644
--- a/drivers/firewire/core-device.c
+++ b/drivers/firewire/core-device.c
@@ -1310,3 +1310,7 @@ void fw_node_event(struct fw_card *card, struct fw_node *node, int event)
break;
}
}
+
+#ifdef CONFIG_FIREWIRE_KUNIT_DEVICE_ATTRIBUTE_TEST
+#include "device-attribute-test.c"
+#endif