diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2023-12-24 23:23:00 +0100 |
---|---|---|
committer | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2024-01-08 01:36:56 +0100 |
commit | 1770d39d10dd4c7b867e8e9f88d0f23373df3773 (patch) | |
tree | 2028fbb9334f006899f254b44b662bce5ab78225 /drivers/firewire/core-device.c | |
parent | firewire: core: replace magic number with macro (diff) | |
download | linux-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.c | 4 |
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 |