drm/ast: Move DDC code to ast_ddc.{c,h}
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 25 Mar 2024 20:06:50 +0000 (21:06 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 2 Apr 2024 08:40:46 +0000 (10:40 +0200)
commit0a7f04b433fc7c77d8c03eb6b2f32196a3d9b0c5
treeb8376b997b6e1099e2471069a2b3ba0927062739
parente14ab3037383f4e3d026e2aea1ad53644a3735ed
drm/ast: Move DDC code to ast_ddc.{c,h}

Rename ast_i2c.c to ast_ddc.c and move its interface into the
new header ast_ddc.h. Update all include statements as necessary
and change the adapter name to 'AST DDC bus'.

This avoids including I2C headers in the driver's main header file,
which doesn't need them. Renaming files to _ddc indicates that the
code is about the DDC. I2C is really just the underlying bus here.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sui Jingfeng <sui.jingfeng@linux.dev>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240325200855.21150-6-tzimmermann@suse.de
drivers/gpu/drm/ast/Makefile
drivers/gpu/drm/ast/ast_ddc.c [new file with mode: 0644]
drivers/gpu/drm/ast/ast_ddc.h [new file with mode: 0644]
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_i2c.c [deleted file]
drivers/gpu/drm/ast/ast_mode.c