Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: convert to use i2c_new_client_device()

Move away from the deprecated API.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200326211005.13301-2-wsa+renesas@sang-engineering.com

authored by

Wolfram Sang and committed by
Sam Ravnborg
0bf65950 0ddc9452

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c
··· 856 856 const char *name = pp_lib_thermal_controller_names[controller->ucType]; 857 857 info.addr = controller->ucI2cAddress >> 1; 858 858 strlcpy(info.type, name, sizeof(info.type)); 859 - i2c_new_device(&adev->pm.i2c_bus->adapter, &info); 859 + i2c_new_client_device(&adev->pm.i2c_bus->adapter, &info); 860 860 } 861 861 } else { 862 862 DRM_INFO("Unknown thermal controller type %d at 0x%02x %s fan control\n",