]> Git Repo - J-linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drm/amdgpu: drm_device to amdgpu_device by inline-f (v2)
[J-linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_psp.c
index 116a89990f39e0cedf2e0c6f9577b79495fcc15b..c22fb0194df783a53d1df466706276e9517bcdae 100644 (file)
@@ -2604,7 +2604,7 @@ static ssize_t psp_usbc_pd_fw_sysfs_read(struct device *dev,
                                         char *buf)
 {
        struct drm_device *ddev = dev_get_drvdata(dev);
-       struct amdgpu_device *adev = ddev->dev_private;
+       struct amdgpu_device *adev = drm_to_adev(ddev);
        uint32_t fw_ver;
        int ret;
 
@@ -2631,7 +2631,7 @@ static ssize_t psp_usbc_pd_fw_sysfs_write(struct device *dev,
                                                       size_t count)
 {
        struct drm_device *ddev = dev_get_drvdata(dev);
-       struct amdgpu_device *adev = ddev->dev_private;
+       struct amdgpu_device *adev = drm_to_adev(ddev);
        void *cpu_addr;
        dma_addr_t dma_addr;
        int ret;
This page took 0.028827 seconds and 4 git commands to generate.