firewire: core: add helper functions to access to fw_device data in fw_node structure
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 8 Sep 2025 01:21:01 +0000 (10:21 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 8 Sep 2025 01:26:26 +0000 (10:26 +0900)
commita2bbb8602dc29a8a3fe4f0377c7b820fba384697
tree8f5049ad1f4fa0ce21c8b8289cafd56280d1714d
parentcbb13dceec65b6021a4f403d4fa7b237569a1007
firewire: core: add helper functions to access to fw_device data in fw_node structure

The data mbmer in fw_node structure is an opaque pointer, while nowadays
it is just used to refer to fw_device associated with the fw_node.

This commit redefines the opaque pointer to a pointer to fw_device
structure, and adds some helper functions to set/get it.

Link: https://lore.kernel.org/r/20250908012108.514698-5-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/core-card.c
drivers/firewire/core-device.c
drivers/firewire/core.h