diff options
| author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2024-08-13 08:52:07 +0900 |
|---|---|---|
| committer | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2024-08-13 08:52:07 +0900 |
| commit | ced2da31b87fc5389d6babfb755d0fc3355aba56 (patch) | |
| tree | 17d74fa0d30814ab2814a86f71b55b1c2f1f7eb5 /rust/helpers.c | |
| parent | 3b443fe087889cf6c9c133638f36da5617431703 (diff) | |
| download | linux-ced2da31b87fc5389d6babfb755d0fc3355aba56.tar.gz linux-ced2da31b87fc5389d6babfb755d0fc3355aba56.tar.bz2 linux-ced2da31b87fc5389d6babfb755d0fc3355aba56.zip | |
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>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions
