]> www.infradead.org Git - nvme.git/commit
drm/radeon: add helper rdev_to_drm(rdev)
authorWu Hoi Pok <wuhoipok@gmail.com>
Sun, 30 Jun 2024 16:59:20 +0000 (12:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jul 2024 21:31:59 +0000 (17:31 -0400)
commita6e23bec8ed184ed2a11080b28cdbd7a3024f0c0
treeda19cf65b64733db3fc08dbb809a122c404cdc78
parent78dd6a8d33a3363fb4196e173be0eb4002962798
drm/radeon: add helper rdev_to_drm(rdev)

Add helper rdev_to_drm(rdev), similar to amdgpu, most function should
access the "drm_device" with "rdev_to_drm(rdev)" instead, where amdgpu has
"adev_to_drm(adev)". It also makes changing from "*drm_device" to "drm_device"
in "radeon_devicce" later on easier.

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Wu Hoi Pok <wuhoipok@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon.h