mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/i915/display: Eliminate IS_GEN9_{BC,LP}
Now that we've eliminated INTEL_GEN(), IS_GEN_RANGE(), etc. from the
display code, we should also kill off our use of the IS_GEN9_* macros
too. We'll do the conversion manually this time instead of using
Coccinelle since the most logical substitution can depend heavily on the
code context, and sometimes we can keep the code simpler if we make
additional adjustments such as swapping the order of if/else arms.
v2:
- Restore a lost negation in intel_pll_is_valid().
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210407203945.1432531-1-matthew.d.roper@intel.com
(cherry picked from commit 70bfb30743)
[Jani: cherry picked to topic branch to reduce conflicts]
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
@@ -881,7 +881,7 @@ intel_ddi_get_buf_trans_edp(struct intel_encoder *encoder, int *n_entries)
|
||||
{
|
||||
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
|
||||
|
||||
if (IS_GEN9_BC(dev_priv)) {
|
||||
if (IS_DISPLAY_VER(dev_priv, 9) && !IS_BROXTON(dev_priv)) {
|
||||
const struct ddi_buf_trans *ddi_translations =
|
||||
skl_get_buf_trans_edp(encoder, n_entries);
|
||||
*n_entries = skl_buf_trans_num_entries(encoder->port, *n_entries);
|
||||
@@ -919,7 +919,7 @@ intel_ddi_get_buf_trans_hdmi(struct intel_encoder *encoder,
|
||||
{
|
||||
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
|
||||
|
||||
if (IS_GEN9_BC(dev_priv)) {
|
||||
if (IS_DISPLAY_VER(dev_priv, 9) && !IS_BROXTON(dev_priv)) {
|
||||
return skl_get_buf_trans_hdmi(dev_priv, n_entries);
|
||||
} else if (IS_BROADWELL(dev_priv)) {
|
||||
*n_entries = ARRAY_SIZE(bdw_ddi_translations_hdmi);
|
||||
@@ -1370,10 +1370,10 @@ int intel_ddi_hdmi_num_entries(struct intel_encoder *encoder,
|
||||
} else if (IS_CANNONLAKE(dev_priv)) {
|
||||
cnl_get_buf_trans_hdmi(encoder, &n_entries);
|
||||
*default_entry = n_entries - 1;
|
||||
} else if (IS_GEN9_LP(dev_priv)) {
|
||||
} else if (IS_GEMINILAKE(dev_priv) || IS_BROXTON(dev_priv)) {
|
||||
bxt_get_buf_trans_hdmi(encoder, &n_entries);
|
||||
*default_entry = n_entries - 1;
|
||||
} else if (IS_GEN9_BC(dev_priv)) {
|
||||
} else if (IS_DISPLAY_VER(dev_priv, 9)) {
|
||||
intel_ddi_get_buf_trans_hdmi(encoder, &n_entries);
|
||||
*default_entry = 8;
|
||||
} else if (IS_BROADWELL(dev_priv)) {
|
||||
|
||||
Reference in New Issue
Block a user