static void bs_init(struct mdp4_lcdc_encoder *mdp4_lcdc_encoder) { struct drm_device *dev = mdp4_lcdc_encoder->base.dev; struct lcdc_platform_data *lcdc_pdata = mdp4_find_pdata("lvds.0"); if (!lcdc_pdata) { dev_err(dev->dev, "could not find lvds pdata\n"); return; } if (lcdc_pdata->bus_scale_table) { mdp4_lcdc_encoder->bsc = msm_bus_scale_register_client( lcdc_pdata->bus_scale_table); DBG("lvds : bus scale client: %08x", mdp4_lcdc_encoder->bsc); } }
/* not ironically named at all.. no, really.. */ static void bs_init(struct mdp4_dtv_encoder *mdp4_dtv_encoder) { struct drm_device *dev = mdp4_dtv_encoder->base.dev; struct lcdc_platform_data *dtv_pdata = mdp4_find_pdata("dtv.0"); if (!dtv_pdata) { dev_err(dev->dev, "could not find dtv pdata\n"); return; } if (dtv_pdata->bus_scale_table) { mdp4_dtv_encoder->bsc = msm_bus_scale_register_client( dtv_pdata->bus_scale_table); DBG("bus scale client: %08x", mdp4_dtv_encoder->bsc); DBG("lcdc_power_save: %p", dtv_pdata->lcdc_power_save); if (dtv_pdata->lcdc_power_save) dtv_pdata->lcdc_power_save(1); } }