aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/kobject.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-10-16 12:41:55 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-10-20 12:05:33 +0200
commit593efa4091f5f05c224f8b7fd204d18dbff97e31 (patch)
treed677fe5880a2e3113302282afcebc2bab4e88d3e /include/linux/kobject.h
parentdriver core: allow kobj_to_dev() to take a const pointer (diff)
downloadwireguard-linux-593efa4091f5f05c224f8b7fd204d18dbff97e31.tar.xz
wireguard-linux-593efa4091f5f05c224f8b7fd204d18dbff97e31.zip
USB: allow some usb functions to take a const pointer.
The functions to_usb_interface(), to_usb_device, and interface_to_usbdev() sometimes would like to take a const * and return a const * back. As we are doing pointer math, a call to container_of() loses the const-ness of a pointer, so use a _Generic() macro to pick the proper inline function to call instead. Link: https://lore.kernel.org/r/20221016104155.1260201-1-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/kobject.h')
0 files changed, 0 insertions, 0 deletions