@@ -221,24 +221,24 @@ int msm_hdmi_modeset_init(struct hdmi *hdmi,
221
221
* The hdmi device:
222
222
*/
223
223
224
- #define HDMI_CFG (item , entry ) \
225
- .item ## _names = item ##_names_ ## entry, \
226
- .item ## _cnt = ARRAY_SIZE(item ## _names_ ## entry)
227
-
228
224
static const char * const pwr_reg_names_8960 [] = {"core-vdda" };
229
225
static const char * const pwr_clk_names_8960 [] = {"core" , "master_iface" , "slave_iface" };
230
226
231
227
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 ),
234
232
};
235
233
236
234
static const char * const pwr_reg_names_8x74 [] = {"core-vdda" , "core-vcc" };
237
235
static const char * const pwr_clk_names_8x74 [] = {"iface" , "core" , "mdp_core" , "alt_iface" };
238
236
239
237
static const struct hdmi_platform_config hdmi_tx_8974_config = {
240
- HDMI_CFG (pwr_reg , 8 x74 ),
241
- HDMI_CFG (pwr_clk , 8 x74 ),
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 ),
242
242
};
243
243
244
244
static int msm_hdmi_bind (struct device * dev , struct device * master , void * data )
0 commit comments