diff options
| author | Linyu Yuan <[email protected]> | 2021-11-18 12:53:30 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-11-23 14:12:47 +0100 |
| commit | 167a799c6e88b700c386a010ba3c77ebdbd21a8e (patch) | |
| tree | 580a9e6c633283268d9bda2c2795384bece26cd5 /tools/perf/scripts/python | |
| parent | e4ac5a40cec2ac0dcc050262ec9d97a8efa06b0b (diff) | |
usb: gadget: configfs: simplify os_desc_item_to_gadget_info() helper
since os_desc_group is already a member of struct gadget_info,
we can simply just use container_of() to retrieve the latter,
without needing to dereference the cg_item's parent pointer.
use os_desc_item_to_gadget_info() helper in os_desc (un)link function.
Reviewed-by: Jack Pham <[email protected]>
Signed-off-by: Linyu Yuan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions