Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/msm/dp: Remove unused defines and members

Throughout the Qualcomm Displayport driver a number of defines and
struct members has become unused, but lingers in the code. Remove these.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/585345/
Link: https://lore.kernel.org/r/20240328-msm-dp-cleanup-v2-3-a5aed9798d32@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

authored by

Bjorn Andersson and committed by
Dmitry Baryshkov
670574c9 3306a13a

-41
-5
drivers/gpu/drm/msm/dp/dp_audio.c
··· 22 22 struct platform_device *pdev; 23 23 struct drm_device *drm_dev; 24 24 struct dp_catalog *catalog; 25 - struct dp_panel *panel; 26 25 27 - bool engine_on; 28 26 u32 channels; 29 27 30 28 struct dp_audio dp_audio; ··· 354 356 355 357 catalog->audio_data = enable; 356 358 dp_catalog_audio_enable(catalog); 357 - 358 - audio->engine_on = enable; 359 359 } 360 360 361 361 static struct dp_audio_private *dp_audio_get_data(struct platform_device *pdev) ··· 567 571 } 568 572 569 573 audio->pdev = pdev; 570 - audio->panel = panel; 571 574 audio->catalog = catalog; 572 575 573 576 dp_audio = &audio->dp_audio;
-1
drivers/gpu/drm/msm/dp/dp_catalog.c
··· 81 81 struct dss_io_data io; 82 82 u32 (*audio_map)[DP_AUDIO_SDP_HEADER_MAX]; 83 83 struct dp_catalog dp_catalog; 84 - u8 aux_lut_cfg_index[PHY_AUX_CFG_MAX]; 85 84 }; 86 85 87 86 void dp_catalog_snapshot(struct dp_catalog *dp_catalog, struct msm_disp_state *disp_state)
-17
drivers/gpu/drm/msm/dp/dp_catalog.h
··· 28 28 #define DP_INTR_FRAME_END BIT(6) 29 29 #define DP_INTR_CRC_UPDATED BIT(9) 30 30 31 - #define DP_AUX_CFG_MAX_VALUE_CNT 3 32 - 33 31 #define DP_HW_VERSION_1_0 0x10000000 34 32 #define DP_HW_VERSION_1_2 0x10020000 35 - 36 - /* PHY AUX config registers */ 37 - enum dp_phy_aux_config_type { 38 - PHY_AUX_CFG0, 39 - PHY_AUX_CFG1, 40 - PHY_AUX_CFG2, 41 - PHY_AUX_CFG3, 42 - PHY_AUX_CFG4, 43 - PHY_AUX_CFG5, 44 - PHY_AUX_CFG6, 45 - PHY_AUX_CFG7, 46 - PHY_AUX_CFG8, 47 - PHY_AUX_CFG9, 48 - PHY_AUX_CFG_MAX, 49 - }; 50 33 51 34 enum dp_catalog_audio_sdp_type { 52 35 DP_AUDIO_SDP_STREAM,
-1
drivers/gpu/drm/msm/dp/dp_ctrl.h
··· 12 12 #include "dp_catalog.h" 13 13 14 14 struct dp_ctrl { 15 - atomic_t aborted; 16 15 bool wide_bus_en; 17 16 }; 18 17
-5
drivers/gpu/drm/msm/dp/dp_display.c
··· 74 74 }; 75 75 76 76 struct dp_display_private { 77 - char *name; 78 77 int irq; 79 78 80 79 unsigned int id; ··· 81 82 /* state variables */ 82 83 bool core_initialized; 83 84 bool phy_initialized; 84 - bool hpd_irq_on; 85 85 bool audio_supported; 86 86 87 87 struct drm_device *drm_dev; 88 - struct dentry *root; 89 88 90 89 struct dp_catalog *catalog; 91 90 struct drm_dp_aux *aux; ··· 806 809 807 810 drm_mode_copy(&dp->panel->dp_mode.drm_mode, &mode->drm_mode); 808 811 dp->panel->dp_mode.bpp = mode->bpp; 809 - dp->panel->dp_mode.capabilities = mode->capabilities; 810 812 dp->panel->dp_mode.out_fmt_is_yuv_420 = mode->out_fmt_is_yuv_420; 811 813 dp_panel_init_panel_info(dp->panel); 812 814 return 0; ··· 1284 1288 return -EINVAL; 1285 1289 1286 1290 dp->dp_display.pdev = pdev; 1287 - dp->name = "drm_dp"; 1288 1291 dp->id = desc->id; 1289 1292 dp->dp_display.connector_type = dp_display_get_connector_type(pdev, desc); 1290 1293 dp->wide_bus_supported = desc->wide_bus_supported;
-3
drivers/gpu/drm/msm/dp/dp_display.h
··· 16 16 struct drm_device *drm_dev; 17 17 struct platform_device *pdev; 18 18 struct device *codec_dev; 19 - struct drm_bridge *bridge; 20 19 struct drm_connector *connector; 21 20 struct drm_bridge *next_bridge; 22 21 bool link_ready; ··· 26 27 bool internal_hpd; 27 28 28 29 hdmi_codec_plugged_cb plugged_cb; 29 - 30 - bool wide_bus_en; 31 30 32 31 struct dp_audio *dp_audio; 33 32 bool psr_supported;
-2
drivers/gpu/drm/msm/dp/dp_drm.c
··· 347 347 } 348 348 } 349 349 350 - dp_display->bridge = bridge; 351 - 352 350 return 0; 353 351 } 354 352
-4
drivers/gpu/drm/msm/dp/dp_link.c
··· 36 36 37 37 struct dp_link_private { 38 38 u32 prev_sink_count; 39 - struct device *dev; 40 39 struct drm_device *drm_dev; 41 40 struct drm_dp_aux *aux; 42 41 struct dp_link dp_link; ··· 803 804 if (ret) 804 805 DRM_ERROR("Failed to %s low power mode\n", enable ? 805 806 "enter" : "exit"); 806 - else 807 - dp_link->psm_enabled = enable; 808 807 809 808 mutex_unlock(&link->psm_mutex); 810 809 return ret; ··· 1223 1226 if (!link) 1224 1227 return ERR_PTR(-ENOMEM); 1225 1228 1226 - link->dev = dev; 1227 1229 link->aux = aux; 1228 1230 1229 1231 mutex_init(&link->psm_mutex);
-1
drivers/gpu/drm/msm/dp/dp_link.h
··· 62 62 struct dp_link { 63 63 u32 sink_request; 64 64 u32 test_response; 65 - bool psm_enabled; 66 65 67 66 u8 sink_count; 68 67 struct dp_link_test_video test_video;
-2
drivers/gpu/drm/msm/dp/dp_panel.h
··· 15 15 16 16 struct dp_display_mode { 17 17 struct drm_display_mode drm_mode; 18 - u32 capabilities; 19 18 u32 bpp; 20 19 u32 h_active_low; 21 20 u32 v_active_low; ··· 46 47 bool video_test; 47 48 bool vsc_sdp_supported; 48 49 49 - u32 vic; 50 50 u32 max_dp_lanes; 51 51 u32 max_dp_link_rate; 52 52