aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2022-12-05 12:12:05 +0000
committerGreg Kroah-Hartman <[email protected]>2022-12-06 15:55:25 +0000
commitc3da679286bee1d897bb24a804cca4ff58781bec (patch)
treeeea45f790c6dd2b0faf8609c13d078b4186cf8a6 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentdevice.h: move kobj_to_dev() to use container_of_const() (diff)
downloadkernel-c3da679286bee1d897bb24a804cca4ff58781bec.tar.gz
kernel-c3da679286bee1d897bb24a804cca4ff58781bec.zip
usb.h: take advantage of container_of_const()
Instead of rolling our own const-checking logic in to_usb_interface() and to_usb_device() use the newly added container_of_const() instead, making the logic much simpler overall. Reviewed-by: Sakari Ailus <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions