Commit 21318cce authored by Damien Lespiau's avatar Damien Lespiau Committed by Daniel Vetter

drm/i915/skl: Fix big integer constant sparse warning

intel_ddi.c:955:41: sparse: constant 8400000000 is so big it is long
intel_ddi.c:955:53: sparse: constant 9000000000 is so big it is long
intel_ddi.c:955:65: sparse: constant 9600000000 is so big it is long
intel_ddi.c:1028:23: sparse: constant 9600000000 is so big it is long
intel_ddi.c:1031:23: sparse: constant 9000000000 is so big it is long
intel_ddi.c:1034:23: sparse: constant 8400000000 is so big it is long
Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent f5ed50cb
...@@ -952,7 +952,9 @@ skl_ddi_calculate_wrpll(int clock /* in Hz */, ...@@ -952,7 +952,9 @@ skl_ddi_calculate_wrpll(int clock /* in Hz */,
struct skl_wrpll_params *wrpll_params) struct skl_wrpll_params *wrpll_params)
{ {
uint64_t afe_clock = clock * 5; /* AFE Clock is 5x Pixel clock */ uint64_t afe_clock = clock * 5; /* AFE Clock is 5x Pixel clock */
uint64_t dco_central_freq[3] = {8400000000, 9000000000, 9600000000}; uint64_t dco_central_freq[3] = {8400000000ULL,
9000000000ULL,
9600000000ULL};
uint32_t min_dco_deviation = 400; uint32_t min_dco_deviation = 400;
uint32_t min_dco_index = 3; uint32_t min_dco_index = 3;
uint32_t P0[4] = {1, 2, 3, 7}; uint32_t P0[4] = {1, 2, 3, 7};
...@@ -1025,13 +1027,13 @@ skl_ddi_calculate_wrpll(int clock /* in Hz */, ...@@ -1025,13 +1027,13 @@ skl_ddi_calculate_wrpll(int clock /* in Hz */,
wrpll_params->central_freq = dco_central_freq[min_dco_index]; wrpll_params->central_freq = dco_central_freq[min_dco_index];
switch (dco_central_freq[min_dco_index]) { switch (dco_central_freq[min_dco_index]) {
case 9600000000: case 9600000000ULL:
wrpll_params->central_freq = 0; wrpll_params->central_freq = 0;
break; break;
case 9000000000: case 9000000000ULL:
wrpll_params->central_freq = 1; wrpll_params->central_freq = 1;
break; break;
case 8400000000: case 8400000000ULL:
wrpll_params->central_freq = 3; wrpll_params->central_freq = 3;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment