mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-09 07:39:35 -04:00
drm/msm/hdmi: convert clock and regulator arrays to const arrays
As a preparation to the next patches convert 'static const char *' arrays to 'static const char * const', as required by the checkpatch.pl Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Jessica Zhang <quic_jesszhan@quicinc.com> Patchwork: https://patchwork.freedesktop.org/patch/651705/ Link: https://lore.kernel.org/r/20250505-fd-hdmi-hpd-v5-2-48541f76318c@oss.qualcomm.com Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
This commit is contained in:
committed by
Dmitry Baryshkov
parent
90957ca46a
commit
72dff0b04e
@@ -224,17 +224,17 @@ int msm_hdmi_modeset_init(struct hdmi *hdmi,
|
||||
.item ## _names = item ##_names_ ## entry, \
|
||||
.item ## _cnt = ARRAY_SIZE(item ## _names_ ## entry)
|
||||
|
||||
static const char *hpd_reg_names_8960[] = {"core-vdda"};
|
||||
static const char *hpd_clk_names_8960[] = {"core", "master_iface", "slave_iface"};
|
||||
static const char * const hpd_reg_names_8960[] = {"core-vdda"};
|
||||
static const char * const hpd_clk_names_8960[] = {"core", "master_iface", "slave_iface"};
|
||||
|
||||
static const struct hdmi_platform_config hdmi_tx_8960_config = {
|
||||
HDMI_CFG(hpd_reg, 8960),
|
||||
HDMI_CFG(hpd_clk, 8960),
|
||||
};
|
||||
|
||||
static const char *pwr_reg_names_8x74[] = {"core-vdda", "core-vcc"};
|
||||
static const char *pwr_clk_names_8x74[] = {"extp", "alt_iface"};
|
||||
static const char *hpd_clk_names_8x74[] = {"iface", "core", "mdp_core"};
|
||||
static const char * const pwr_reg_names_8x74[] = {"core-vdda", "core-vcc"};
|
||||
static const char * const pwr_clk_names_8x74[] = {"extp", "alt_iface"};
|
||||
static const char * const hpd_clk_names_8x74[] = {"iface", "core", "mdp_core"};
|
||||
static unsigned long hpd_clk_freq_8x74[] = {0, 19200000, 0};
|
||||
|
||||
static const struct hdmi_platform_config hdmi_tx_8974_config = {
|
||||
|
||||
@@ -84,20 +84,20 @@ struct hdmi {
|
||||
/* platform config data (ie. from DT, or pdata) */
|
||||
struct hdmi_platform_config {
|
||||
/* regulators that need to be on for hpd: */
|
||||
const char **hpd_reg_names;
|
||||
const char * const *hpd_reg_names;
|
||||
int hpd_reg_cnt;
|
||||
|
||||
/* regulators that need to be on for screen pwr: */
|
||||
const char **pwr_reg_names;
|
||||
const char * const *pwr_reg_names;
|
||||
int pwr_reg_cnt;
|
||||
|
||||
/* clks that need to be on for hpd: */
|
||||
const char **hpd_clk_names;
|
||||
const char * const *hpd_clk_names;
|
||||
const long unsigned *hpd_freq;
|
||||
int hpd_clk_cnt;
|
||||
|
||||
/* clks that need to be on for screen pwr (ie pixel clk): */
|
||||
const char **pwr_clk_names;
|
||||
const char * const *pwr_clk_names;
|
||||
int pwr_clk_cnt;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user