summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c
diff options
context:
space:
mode:
authorRodrigo Siqueira <siqueira@igalia.com>2025-09-10 20:39:34 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-09-17 00:47:16 +0300
commit5b3eca05cfb02ed0dbd7097c056fb08ce5f76fe3 (patch)
treeb6c204ccfa53dad312e934a0291a279f2123bb91 /drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c
parent70db83e2b9064bc427d1a7003e516b3400a8ceda (diff)
downloadlinux-5b3eca05cfb02ed0dbd7097c056fb08ce5f76fe3.tar.xz
drm/amd/display: Use devm_i2c_add_adapter to simplify i2c cleanup logic
This commit replaces the utilization of i2c_add/del_adapter() with devm_i2c_add_adapter() to reduce the amount of boilerplate. Using devm_i2c_add_adapter() has the advantage of removing the manual manipulation of the I2C adapter. Suggested-by: Robert Beckett <bob.beckett@collabora.com> Signed-off-by: Rodrigo Siqueira <siqueira@igalia.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c')
0 files changed, 0 insertions, 0 deletions