Commit 2dfac87c authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Clean up some struct/array initializers

Use the simple '= {}' form to initialize empty arrays/structs.
Also add some missing whitespace.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220301173128.6988-4-ville.syrjala@linux.intel.comReviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
parent fe70b262
...@@ -835,7 +835,7 @@ hsw_ddi_calculate_wrpll(int clock /* in Hz */, ...@@ -835,7 +835,7 @@ hsw_ddi_calculate_wrpll(int clock /* in Hz */,
{ {
u64 freq2k; u64 freq2k;
unsigned p, n2, r2; unsigned p, n2, r2;
struct hsw_wrpll_rnp best = { 0, 0, 0 }; struct hsw_wrpll_rnp best = {};
unsigned budget; unsigned budget;
freq2k = clock / 100; freq2k = clock / 100;
...@@ -1570,8 +1570,8 @@ skl_ddi_calculate_wrpll(int clock /* in Hz */, ...@@ -1570,8 +1570,8 @@ skl_ddi_calculate_wrpll(int clock /* in Hz */,
static bool skl_ddi_hdmi_pll_dividers(struct intel_crtc_state *crtc_state) static bool skl_ddi_hdmi_pll_dividers(struct intel_crtc_state *crtc_state)
{ {
struct drm_i915_private *i915 = to_i915(crtc_state->uapi.crtc->dev); struct drm_i915_private *i915 = to_i915(crtc_state->uapi.crtc->dev);
struct skl_wrpll_params wrpll_params = {};
u32 ctrl1, cfgcr1, cfgcr2; u32 ctrl1, cfgcr1, cfgcr2;
struct skl_wrpll_params wrpll_params = { 0, };
/* /*
* See comment in intel_dpll_hw_state to understand why we always use 0 * See comment in intel_dpll_hw_state to understand why we always use 0
...@@ -2098,13 +2098,13 @@ struct bxt_clk_div { ...@@ -2098,13 +2098,13 @@ struct bxt_clk_div {
/* pre-calculated values for DP linkrates */ /* pre-calculated values for DP linkrates */
static const struct bxt_clk_div bxt_dp_clk_val[] = { static const struct bxt_clk_div bxt_dp_clk_val[] = {
{162000, 4, 2, 32, 1677722, 1, 1}, { 162000, 4, 2, 32, 1677722, 1, 1 },
{270000, 4, 1, 27, 0, 0, 1}, { 270000, 4, 1, 27, 0, 0, 1 },
{540000, 2, 1, 27, 0, 0, 1}, { 540000, 2, 1, 27, 0, 0, 1 },
{216000, 3, 2, 32, 1677722, 1, 1}, { 216000, 3, 2, 32, 1677722, 1, 1 },
{243000, 4, 1, 24, 1258291, 1, 1}, { 243000, 4, 1, 24, 1258291, 1, 1 },
{324000, 4, 1, 32, 1677722, 1, 1}, { 324000, 4, 1, 32, 1677722, 1, 1 },
{432000, 3, 1, 32, 1677722, 1, 1} { 432000, 3, 1, 32, 1677722, 1, 1 }
}; };
static bool static bool
......
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