]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Use devm_i2c_add_adapter to simplify i2c cleanup logic
authorRodrigo Siqueira <siqueira@igalia.com>
Wed, 10 Sep 2025 17:39:34 +0000 (11:39 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Sep 2025 21:47:16 +0000 (17:47 -0400)
commit5b3eca05cfb02ed0dbd7097c056fb08ce5f76fe3
treeb6c204ccfa53dad312e934a0291a279f2123bb91
parent70db83e2b9064bc427d1a7003e516b3400a8ceda
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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c