diff options
| author | Wolfram Sang <[email protected]> | 2020-03-26 21:09:59 +0000 |
|---|---|---|
| committer | Sam Ravnborg <[email protected]> | 2020-03-28 21:47:22 +0000 |
| commit | 0bf659504912718312547d4ebf14a4e678c4f060 (patch) | |
| tree | f40680b9b8bd3225949f01b918294c7b89003dc0 /drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c | |
| parent | dt-bindings: display: add visionox rm69299 panel variant (diff) | |
| download | kernel-0bf659504912718312547d4ebf14a4e678c4f060.tar.gz kernel-0bf659504912718312547d4ebf14a4e678c4f060.zip | |
drm/amdgpu: convert to use i2c_new_client_device()
Move away from the deprecated API.
Signed-off-by: Wolfram Sang <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c index ba1bb95a3cf9..0e8018c9aa8e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c @@ -856,7 +856,7 @@ void amdgpu_add_thermal_controller(struct amdgpu_device *adev) const char *name = pp_lib_thermal_controller_names[controller->ucType]; info.addr = controller->ucI2cAddress >> 1; strlcpy(info.type, name, sizeof(info.type)); - i2c_new_device(&adev->pm.i2c_bus->adapter, &info); + i2c_new_client_device(&adev->pm.i2c_bus->adapter, &info); } } else { DRM_INFO("Unknown thermal controller type %d at 0x%02x %s fan control\n", |
