From: Ville Syrjälä <[email protected]>

We no longer have any need for the has_vga flag in the
display power well descriptor. Get rid of it.

Signed-off-by: Ville Syrjälä <[email protected]>
---
 .../gpu/drm/i915/display/intel_display_power_map.c  | 13 -------------
 .../gpu/drm/i915/display/intel_display_power_well.c |  5 ++---
 .../gpu/drm/i915/display/intel_display_power_well.h |  2 --
 3 files changed, 2 insertions(+), 18 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_display_power_map.c 
b/drivers/gpu/drm/i915/display/intel_display_power_map.c
index 9b49952994ce..638d971a3a6c 100644
--- a/drivers/gpu/drm/i915/display/intel_display_power_map.c
+++ b/drivers/gpu/drm/i915/display/intel_display_power_map.c
@@ -112,7 +112,6 @@ static const struct i915_power_well_desc 
hsw_power_wells_main[] = {
                                .id = HSW_DISP_PW_GLOBAL),
                ),
                .ops = &hsw_power_well_ops,
-               .has_vga = true,
        },
 };
 
@@ -146,7 +145,6 @@ static const struct i915_power_well_desc 
bdw_power_wells_main[] = {
                                .id = HSW_DISP_PW_GLOBAL),
                ),
                .ops = &hsw_power_well_ops,
-               .has_vga = true,
                .irq_pipe_mask = BIT(PIPE_B) | BIT(PIPE_C),
        },
 };
@@ -390,7 +388,6 @@ static const struct i915_power_well_desc 
skl_power_wells_main[] = {
                                .id = SKL_DISP_PW_2),
                ),
                .ops = &hsw_power_well_ops,
-               .has_vga = true,
                .irq_pipe_mask = BIT(PIPE_B) | BIT(PIPE_C),
                .has_fuses = true,
        }, {
@@ -469,7 +466,6 @@ static const struct i915_power_well_desc 
bxt_power_wells_main[] = {
                                .id = SKL_DISP_PW_2),
                ),
                .ops = &hsw_power_well_ops,
-               .has_vga = true,
                .irq_pipe_mask = BIT(PIPE_B) | BIT(PIPE_C),
                .has_fuses = true,
        }, {
@@ -572,7 +568,6 @@ static const struct i915_power_well_desc 
glk_power_wells_main[] = {
                                .id = SKL_DISP_PW_2),
                ),
                .ops = &hsw_power_well_ops,
-               .has_vga = true,
                .irq_pipe_mask = BIT(PIPE_B) | BIT(PIPE_C),
                .has_fuses = true,
        }, {
@@ -748,7 +743,6 @@ static const struct i915_power_well_desc 
icl_power_wells_main[] = {
                                .id = ICL_DISP_PW_3),
                ),
                .ops = &hsw_power_well_ops,
-               .has_vga = true,
                .irq_pipe_mask = BIT(PIPE_B),
                .has_fuses = true,
        }, {
@@ -914,7 +908,6 @@ static const struct i915_power_well_desc 
tgl_power_wells_main[] = {
                                .id = ICL_DISP_PW_3),
                ),
                .ops = &hsw_power_well_ops,
-               .has_vga = true,
                .irq_pipe_mask = BIT(PIPE_B),
                .has_fuses = true,
        }, {
@@ -1071,7 +1064,6 @@ static const struct i915_power_well_desc 
rkl_power_wells_main[] = {
                ),
                .ops = &hsw_power_well_ops,
                .irq_pipe_mask = BIT(PIPE_B),
-               .has_vga = true,
                .has_fuses = true,
        }, {
                .instances = &I915_PW_INSTANCES(
@@ -1166,7 +1158,6 @@ static const struct i915_power_well_desc 
dg1_power_wells_main[] = {
                ),
                .ops = &hsw_power_well_ops,
                .irq_pipe_mask = BIT(PIPE_B),
-               .has_vga = true,
                .has_fuses = true,
        }, {
                .instances = &I915_PW_INSTANCES(
@@ -1325,7 +1316,6 @@ static const struct i915_power_well_desc 
xelpd_power_wells_main[] = {
                                .id = SKL_DISP_PW_2),
                ),
                .ops = &hsw_power_well_ops,
-               .has_vga = true,
                .has_fuses = true,
        }, {
                .instances = &I915_PW_INSTANCES(
@@ -1482,7 +1472,6 @@ static const struct i915_power_well_desc 
xelpdp_power_wells_main[] = {
                                .id = SKL_DISP_PW_2),
                ),
                .ops = &hsw_power_well_ops,
-               .has_vga = true,
                .has_fuses = true,
        }, {
                .instances = &I915_PW_INSTANCES(
@@ -1649,7 +1638,6 @@ static const struct i915_power_well_desc 
xe3lpd_power_wells_main[] = {
                                .id = SKL_DISP_PW_2),
                ),
                .ops = &hsw_power_well_ops,
-               .has_vga = true,
                .has_fuses = true,
        }, {
                .instances = &I915_PW_INSTANCES(
@@ -1722,7 +1710,6 @@ static const struct i915_power_well_desc 
wcl_power_wells_main[] = {
                                .id = SKL_DISP_PW_2),
                ),
                .ops = &hsw_power_well_ops,
-               .has_vga = true,
                .has_fuses = true,
        }, {
                .instances = &I915_PW_INSTANCES(
diff --git a/drivers/gpu/drm/i915/display/intel_display_power_well.c 
b/drivers/gpu/drm/i915/display/intel_display_power_well.c
index 52b20118ace6..68f293c3ac01 100644
--- a/drivers/gpu/drm/i915/display/intel_display_power_well.c
+++ b/drivers/gpu/drm/i915/display/intel_display_power_well.c
@@ -202,7 +202,7 @@ int intel_power_well_refcount(struct i915_power_well 
*power_well)
  * requesting it to be enabled.
  */
 static void hsw_power_well_post_enable(struct intel_display *display,
-                                      u8 irq_pipe_mask, bool has_vga)
+                                      u8 irq_pipe_mask)
 {
        if (irq_pipe_mask)
                gen8_irq_power_well_post_enable(display, irq_pipe_mask);
@@ -415,8 +415,7 @@ static void hsw_power_well_enable(struct intel_display 
*display,
        }
 
        hsw_power_well_post_enable(display,
-                                  power_well->desc->irq_pipe_mask,
-                                  power_well->desc->has_vga);
+                                  power_well->desc->irq_pipe_mask);
 }
 
 static void hsw_power_well_disable(struct intel_display *display,
diff --git a/drivers/gpu/drm/i915/display/intel_display_power_well.h 
b/drivers/gpu/drm/i915/display/intel_display_power_well.h
index ec8e508d0593..8f5524da2d06 100644
--- a/drivers/gpu/drm/i915/display/intel_display_power_well.h
+++ b/drivers/gpu/drm/i915/display/intel_display_power_well.h
@@ -103,8 +103,6 @@ struct i915_power_well_desc {
         * the well enabled.
         */
        u16 fixed_enable_delay:1;
-       /* The pw is backing the VGA functionality */
-       u16 has_vga:1;
        u16 has_fuses:1;
        /*
         * The pw is for an ICL+ TypeC PHY port in
-- 
2.51.2

Reply via email to