aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/message.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2023-01-11 11:30:06 +0000
committerGreg Kroah-Hartman <[email protected]>2023-01-27 12:45:35 +0000
commit49b7fc1c25481c823e391b5617546b1ad4af0852 (patch)
tree897a2e5e2214677e480bed493166c0296a9c7c81 /drivers/usb/core/message.c
parentplatform/surface: aggregator: move to_ssam_device() to use container_of_const() (diff)
downloadkernel-49b7fc1c25481c823e391b5617546b1ad4af0852.tar.gz
kernel-49b7fc1c25481c823e391b5617546b1ad4af0852.zip
firewire: move fw_device() and fw_unit() to use container_of_const()
The driver core is changing to pass some pointers as const, so move fw_device() and fw_unit() functions to use container_of_const() to handle this change. fw_device() and fw_unit() now properly keeps the const-ness of the pointer passed into it, while as before it could be lost. This also required turning fw_parent_device() into a macro to preserve the const-ness of the pointer passed into it if necessary. Cc: Stefan Richter <[email protected]> Acked-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/core/message.c')
0 files changed, 0 insertions, 0 deletions