]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/bridge: samsung-dsim: add ability to define clock names for every variant
authorKaustabh Chakraborty <kauschluss@disroot.org>
Sun, 6 Jul 2025 18:25:44 +0000 (23:55 +0530)
committerInki Dae <inki.dae@samsung.com>
Mon, 15 Sep 2025 10:55:10 +0000 (19:55 +0900)
commitf08051a4158fec363e1f33b75dd48131f524fa5f
treef1680fd093409473c5480ac4e9c23f43b55e5acc
parent7ef93667ab19370a2a05b8dbcad36d76b887ff38
drm/bridge: samsung-dsim: add ability to define clock names for every variant

Presently, all devices refer to clock names from a single array. The
only controlling parameter is the number of clocks (num_clks field of
samsung_dsim_driver_data) which uses the first n clocks of that array.
As new devices are added, this approach turns out to be cumbersome.

Separate the clock names in individual arrays required by each variant,
in a struct clk_bulk_data. Add a pointer field to the driver data struct
which points to their respective clock names, and rework the clock usage
code to use the clk_bulk_* API instead.

Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/bridge/samsung-dsim.c
include/drm/bridge/samsung-dsim.h