]> www.infradead.org Git - users/dwmw2/linux.git/commit
firewire: core: add helper functions to convert to parent resource structure
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 12 Aug 2024 23:52:07 +0000 (08:52 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 12 Aug 2024 23:52:07 +0000 (08:52 +0900)
commitced2da31b87fc5389d6babfb755d0fc3355aba56
tree17d74fa0d30814ab2814a86f71b55b1c2f1f7eb5
parent3b443fe087889cf6c9c133638f36da5617431703
firewire: core: add helper functions to convert to parent resource structure

All of local resource structure commonly have data of client_resource type
in its first member. This design sometimes requires usage of
container_of to retrieve parent structure by the first member.

This commit adds some helper functions for this purpose.

Link: https://lore.kernel.org/r/20240812235210.28458-3-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/core-cdev.c