Skip to content

Commit 72dff0b

Browse files
committed
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>
1 parent 90957ca commit 72dff0b

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

drivers/gpu/drm/msm/hdmi/hdmi.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,17 +224,17 @@ int msm_hdmi_modeset_init(struct hdmi *hdmi,
224224
.item ## _names = item ##_names_ ## entry, \
225225
.item ## _cnt = ARRAY_SIZE(item ## _names_ ## entry)
226226

227-
static const char *hpd_reg_names_8960[] = {"core-vdda"};
228-
static const char *hpd_clk_names_8960[] = {"core", "master_iface", "slave_iface"};
227+
static const char * const hpd_reg_names_8960[] = {"core-vdda"};
228+
static const char * const hpd_clk_names_8960[] = {"core", "master_iface", "slave_iface"};
229229

230230
static const struct hdmi_platform_config hdmi_tx_8960_config = {
231231
HDMI_CFG(hpd_reg, 8960),
232232
HDMI_CFG(hpd_clk, 8960),
233233
};
234234

235-
static const char *pwr_reg_names_8x74[] = {"core-vdda", "core-vcc"};
236-
static const char *pwr_clk_names_8x74[] = {"extp", "alt_iface"};
237-
static const char *hpd_clk_names_8x74[] = {"iface", "core", "mdp_core"};
235+
static const char * const pwr_reg_names_8x74[] = {"core-vdda", "core-vcc"};
236+
static const char * const pwr_clk_names_8x74[] = {"extp", "alt_iface"};
237+
static const char * const hpd_clk_names_8x74[] = {"iface", "core", "mdp_core"};
238238
static unsigned long hpd_clk_freq_8x74[] = {0, 19200000, 0};
239239

240240
static const struct hdmi_platform_config hdmi_tx_8974_config = {

drivers/gpu/drm/msm/hdmi/hdmi.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,20 @@ struct hdmi {
8484
/* platform config data (ie. from DT, or pdata) */
8585
struct hdmi_platform_config {
8686
/* regulators that need to be on for hpd: */
87-
const char **hpd_reg_names;
87+
const char * const *hpd_reg_names;
8888
int hpd_reg_cnt;
8989

9090
/* regulators that need to be on for screen pwr: */
91-
const char **pwr_reg_names;
91+
const char * const *pwr_reg_names;
9292
int pwr_reg_cnt;
9393

9494
/* clks that need to be on for hpd: */
95-
const char **hpd_clk_names;
95+
const char * const *hpd_clk_names;
9696
const long unsigned *hpd_freq;
9797
int hpd_clk_cnt;
9898

9999
/* clks that need to be on for screen pwr (ie pixel clk): */
100-
const char **pwr_clk_names;
100+
const char * const *pwr_clk_names;
101101
int pwr_clk_cnt;
102102
};
103103

0 commit comments

Comments
 (0)