[PATCH 5/7] drm/amdgpu: delete unused members from struct amdgpu_pll
Nils Wallménius
nils.wallmenius at gmail.com
Sat Mar 19 15:12:15 UTC 2016
Clean up some set-but-not-read members and one unused member.
Signed-off-by: Nils Wallménius <nils.wallmenius at gmail.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c | 5 -----
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 6 ------
2 files changed, 11 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c
index 84b0ce3..a2a15b7 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c
@@ -599,13 +599,10 @@ int amdgpu_atombios_get_clock_info(struct amdgpu_device *adev)
ppll->min_post_div = 2;
ppll->max_post_div = 0x7f;
- ppll->min_frac_feedback_div = 0;
- ppll->max_frac_feedback_div = 9;
ppll->min_ref_div = 2;
ppll->max_ref_div = 0x3ff;
ppll->min_feedback_div = 4;
ppll->max_feedback_div = 0xfff;
- ppll->best_vco = 0;
for (i = 1; i < AMDGPU_MAX_PPLL; i++)
adev->clock.ppll[i] = *ppll;
@@ -635,7 +632,6 @@ int amdgpu_atombios_get_clock_info(struct amdgpu_device *adev)
spll->max_ref_div = 0xff;
spll->min_feedback_div = 4;
spll->max_feedback_div = 0xff;
- spll->best_vco = 0;
/* memory clock */
mpll->reference_freq =
@@ -667,7 +663,6 @@ int amdgpu_atombios_get_clock_info(struct amdgpu_device *adev)
mpll->max_ref_div = 0xff;
mpll->min_feedback_div = 4;
mpll->max_feedback_div = 0xff;
- mpll->best_vco = 0;
/* disp clock */
adev->clock.default_dispclk =
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
index 8d432e6..1dff768 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
@@ -195,7 +195,6 @@ struct amdgpu_pll {
uint32_t pll_out_max;
uint32_t lcd_pll_out_min;
uint32_t lcd_pll_out_max;
- uint32_t best_vco;
/* divider limits */
uint32_t min_ref_div;
@@ -204,14 +203,9 @@ struct amdgpu_pll {
uint32_t max_post_div;
uint32_t min_feedback_div;
uint32_t max_feedback_div;
- uint32_t min_frac_feedback_div;
- uint32_t max_frac_feedback_div;
/* flags for the current clock */
uint32_t flags;
-
- /* pll id */
- uint32_t id;
};
struct amdgpu_i2c_chan {
--
2.7.0
More information about the dri-devel
mailing list