drm/ast: Group DDC init code by data structure
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 3 Apr 2024 10:31:29 +0000 (12:31 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 11 Apr 2024 07:38:17 +0000 (09:38 +0200)
commit7c885f8afa01235e91ca2c6dd635dcf3dcd2416f
treebd0926988dcc3b526d51012397c41ef93cdcddaf
parentc0cd6925856f661e1a37278660ccae551cef7077
drm/ast: Group DDC init code by data structure

Reorder the code to set up the DDC channel by data structure, so
that each data structure's init is in a separate block: first the
bit algo then the i2c adapter. Makes the code more readable. No
functional changes.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240403103325.30457-3-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_ddc.c