aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorRasmus Villemoes <[email protected]>2022-09-21 11:46:23 +0000
committerAlexandre Belloni <[email protected]>2022-10-12 22:17:22 +0000
commitb1a1baa657c738e8bb0107ce304f5e78b9847f37 (patch)
tree4c02dd89c9024da184075e95bf29fd38c3f685b6 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentrtc: isl12022: drop redundant write to HR register (diff)
downloadkernel-b1a1baa657c738e8bb0107ce304f5e78b9847f37.tar.gz
kernel-b1a1baa657c738e8bb0107ce304f5e78b9847f37.zip
rtc: isl12022: switch to using regmap API
The regmap abstraction allows us to avoid the private i2c transfer helpers, and also offers some nice utility functions such as the regmap_update_bits family. While at it, simplify the code even more by not keeping track of ->write_enabled: rtc_set_time is not a hot path, so one extra i2c read doesn't hurt (regmap_update_bits elides the write when the bits are already as desired). Signed-off-by: Rasmus Villemoes <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions