Merge "disp: msm: dsi: add const qualifer for device node in get_named_gpio"

这个提交包含在:
qctecmdr
2021-10-20 09:37:41 -07:00
提交者 Gerrit - the friendly Code Review server
当前提交 5f25adc693
修改 29 个文件,包含 226 行新增238 行删除

查看文件

@@ -2007,40 +2007,20 @@ static int dsi_display_debugfs_init(struct dsi_display *display)
snprintf(name, ARRAY_SIZE(name),
"%s_allow_phy_power_off", phy->name);
dump_file = debugfs_create_bool(name, 0600, dir,
&phy->allow_phy_power_off);
if (IS_ERR_OR_NULL(dump_file)) {
rc = PTR_ERR(dump_file);
DSI_ERR("[%s] debugfs create %s failed, rc=%d\n",
display->name, name, rc);
goto error_remove_dir;
}
debugfs_create_bool(name, 0600, dir, &phy->allow_phy_power_off);
snprintf(name, ARRAY_SIZE(name),
"%s_regulator_min_datarate_bps", phy->name);
debugfs_create_u32(name, 0600, dir, &phy->regulator_min_datarate_bps);
}
if (!debugfs_create_bool("ulps_feature_enable", 0600, dir,
&display->panel->ulps_feature_enabled)) {
DSI_ERR("[%s] debugfs create ulps feature enable file failed\n",
display->name);
goto error_remove_dir;
}
debugfs_create_bool("ulps_feature_enable", 0600, dir,
&display->panel->ulps_feature_enabled);
if (!debugfs_create_bool("ulps_suspend_feature_enable", 0600, dir,
&display->panel->ulps_suspend_enabled)) {
DSI_ERR("[%s] debugfs create ulps-suspend feature enable file failed\n",
display->name);
goto error_remove_dir;
}
debugfs_create_bool("ulps_suspend_feature_enable", 0600, dir,
&display->panel->ulps_suspend_enabled);
if (!debugfs_create_bool("ulps_status", 0400, dir,
&display->ulps_enabled)) {
DSI_ERR("[%s] debugfs create ulps status file failed\n",
display->name);
goto error_remove_dir;
}
debugfs_create_bool("ulps_status", 0400, dir, &display->ulps_enabled);
debugfs_create_u32("clk_gating_config", 0600, dir, &display->clk_gating_config);
@@ -6383,11 +6363,11 @@ static int dsi_host_ext_attach(struct mipi_dsi_host *host,
DSI_VIDEO_TRAFFIC_SYNC_START_EVENTS;
panel->video_config.hsa_lp11_en =
dsi->mode_flags & MIPI_DSI_MODE_VIDEO_HSA;
dsi->mode_flags & MIPI_DSI_MODE_VIDEO_NO_HSA;
panel->video_config.hbp_lp11_en =
dsi->mode_flags & MIPI_DSI_MODE_VIDEO_HBP;
dsi->mode_flags & MIPI_DSI_MODE_VIDEO_NO_HBP;
panel->video_config.hfp_lp11_en =
dsi->mode_flags & MIPI_DSI_MODE_VIDEO_HFP;
dsi->mode_flags & MIPI_DSI_MODE_VIDEO_NO_HFP;
panel->video_config.pulse_mode_hsa_he =
dsi->mode_flags & MIPI_DSI_MODE_VIDEO_HSE;
} else {