[v5,06/13] drm/ast: Rename struct ast_i2c_chan to struct ast_ddc

Thomas Zimmermann tzimmermann at suse.de
Thu Mar 21 08:13:58 UTC 2024


Hi

Am 20.03.24 um 18:32 schrieb Sui Jingfeng:
> Hi,
>
>
> On 2024/3/20 17:34, Thomas Zimmermann wrote:
>> The struct struct ast_i2c_chan represents the Display Data Channel
>> (DDC); I2C is the underlying bus. Rename the structure, the variables
>> and the helper ast_i2c_create() to ddc-like terms. No functional
>> changes.
>>
>> Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
>
>
> Personally, I think _i2c_ is better name than _ddc_. Because It seems 
> that
> the Display Data Channel is comes from VESA standard, while aspeed I2C 
> can
> be used to configure the external display bridges(encoder). So _i2c_ is a
> *abstract* name, and can be utilized to do something else beyond the DDC
> itself.

This specific instance of i2c is for DDC; even the AST manual refers to 
it as DDC. I don't think there's anything else we could do with those 
registers. If we have other uses for i2c, we can easily add them in 
separate code.

>
>
> Reviewed-by: Sui Jingfeng <sui.jingfeng at linux.dev>

Thanks for reviewing the series. I think the new helper in patch 12 
could be useful for loongson [1][2] as well.

Best regards
Thomas

[1] 
https://elixir.bootlin.com/linux/v6.8/source/drivers/gpu/drm/loongson/lsdc_output_7a1000.c#L80
[2] 
https://elixir.bootlin.com/linux/v6.8/source/drivers/gpu/drm/loongson/lsdc_output_7a2000.c#L177

-- 
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)



More information about the dri-devel mailing list