Skip to content

Commit 969bbbf

Browse files
committed
drm/msm/hdmi: expand the HDMI_CFG macro
Expand the HDMI_CFG() macro in HDMI config description. It has no added value other than hiding some boilerplate declarations. Reviewed-by: Jessica Zhang <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/651724/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent a7a1550 commit 969bbbf

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,24 +221,24 @@ int msm_hdmi_modeset_init(struct hdmi *hdmi,
221221
* The hdmi device:
222222
*/
223223

224-
#define HDMI_CFG(item, entry) \
225-
.item ## _names = item ##_names_ ## entry, \
226-
.item ## _cnt = ARRAY_SIZE(item ## _names_ ## entry)
227-
228224
static const char * const pwr_reg_names_8960[] = {"core-vdda"};
229225
static const char * const pwr_clk_names_8960[] = {"core", "master_iface", "slave_iface"};
230226

231227
static const struct hdmi_platform_config hdmi_tx_8960_config = {
232-
HDMI_CFG(pwr_reg, 8960),
233-
HDMI_CFG(pwr_clk, 8960),
228+
.pwr_reg_names = pwr_reg_names_8960,
229+
.pwr_reg_cnt = ARRAY_SIZE(pwr_reg_names_8960),
230+
.pwr_clk_names = pwr_clk_names_8960,
231+
.pwr_clk_cnt = ARRAY_SIZE(pwr_clk_names_8960),
234232
};
235233

236234
static const char * const pwr_reg_names_8x74[] = {"core-vdda", "core-vcc"};
237235
static const char * const pwr_clk_names_8x74[] = {"iface", "core", "mdp_core", "alt_iface"};
238236

239237
static const struct hdmi_platform_config hdmi_tx_8974_config = {
240-
HDMI_CFG(pwr_reg, 8x74),
241-
HDMI_CFG(pwr_clk, 8x74),
238+
.pwr_reg_names = pwr_reg_names_8x74,
239+
.pwr_reg_cnt = ARRAY_SIZE(pwr_reg_names_8x74),
240+
.pwr_clk_names = pwr_clk_names_8x74,
241+
.pwr_clk_cnt = ARRAY_SIZE(pwr_clk_names_8x74),
242242
};
243243

244244
static int msm_hdmi_bind(struct device *dev, struct device *master, void *data)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ struct hdmi_platform_config {
8686
const char * const *pwr_reg_names;
8787
int pwr_reg_cnt;
8888

89-
/* clks that need to be on for hpd: */
89+
/* clks that need to be on: */
9090
const char * const *pwr_clk_names;
9191
int pwr_clk_cnt;
9292
};

0 commit comments

Comments
 (0)