diff options
author | Rodrigo Siqueira <siqueira@igalia.com> | 2025-09-10 11:39:34 -0600 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-09-16 17:47:16 -0400 |
commit | 5b3eca05cfb02ed0dbd7097c056fb08ce5f76fe3 (patch) | |
tree | b6c204ccfa53dad312e934a0291a279f2123bb91 /rust/helpers/mutex.c | |
parent | 70db83e2b9064bc427d1a7003e516b3400a8ceda (diff) |
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 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions