diff options
author | Imre Deak <imre.deak@intel.com> | 2018-11-09 09:58:21 -0500 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2018-11-14 06:45:31 -0500 |
commit | 285cf66d52204ddb2bc9d049a37e5a3cd2a01733 (patch) | |
tree | 950f722ce1acb457d920d0b1d63d69e13651b3f5 /drivers/gpu/drm/i915/intel_runtime_pm.c | |
parent | cb8ef723ab812bf61553d88542b3a37f2ca75b48 (diff) |
drm/i915: Use proper bool bitfield initializer in power well descs
We can just use a proper true/false initializer even for bitfields,
which is more descriptive.
Cc: Ramalingam C <ramalingam.c@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181109145822.15446-2-imre.deak@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_runtime_pm.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_runtime_pm.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c index 3894e4a63415..621d16d2bc89 100644 --- a/drivers/gpu/drm/i915/intel_runtime_pm.c +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c | |||
@@ -2098,7 +2098,7 @@ static const struct i915_power_well_ops chv_dpio_cmn_power_well_ops = { | |||
2098 | static const struct i915_power_well_desc i9xx_always_on_power_well[] = { | 2098 | static const struct i915_power_well_desc i9xx_always_on_power_well[] = { |
2099 | { | 2099 | { |
2100 | .name = "always-on", | 2100 | .name = "always-on", |
2101 | .always_on = 1, | 2101 | .always_on = true, |
2102 | .domains = POWER_DOMAIN_MASK, | 2102 | .domains = POWER_DOMAIN_MASK, |
2103 | .ops = &i9xx_always_on_power_well_ops, | 2103 | .ops = &i9xx_always_on_power_well_ops, |
2104 | .id = DISP_PW_ID_NONE, | 2104 | .id = DISP_PW_ID_NONE, |
@@ -2115,7 +2115,7 @@ static const struct i915_power_well_ops i830_pipes_power_well_ops = { | |||
2115 | static const struct i915_power_well_desc i830_power_wells[] = { | 2115 | static const struct i915_power_well_desc i830_power_wells[] = { |
2116 | { | 2116 | { |
2117 | .name = "always-on", | 2117 | .name = "always-on", |
2118 | .always_on = 1, | 2118 | .always_on = true, |
2119 | .domains = POWER_DOMAIN_MASK, | 2119 | .domains = POWER_DOMAIN_MASK, |
2120 | .ops = &i9xx_always_on_power_well_ops, | 2120 | .ops = &i9xx_always_on_power_well_ops, |
2121 | .id = DISP_PW_ID_NONE, | 2121 | .id = DISP_PW_ID_NONE, |
@@ -2159,7 +2159,7 @@ static const struct i915_power_well_regs hsw_power_well_regs = { | |||
2159 | static const struct i915_power_well_desc hsw_power_wells[] = { | 2159 | static const struct i915_power_well_desc hsw_power_wells[] = { |
2160 | { | 2160 | { |
2161 | .name = "always-on", | 2161 | .name = "always-on", |
2162 | .always_on = 1, | 2162 | .always_on = true, |
2163 | .domains = POWER_DOMAIN_MASK, | 2163 | .domains = POWER_DOMAIN_MASK, |
2164 | .ops = &i9xx_always_on_power_well_ops, | 2164 | .ops = &i9xx_always_on_power_well_ops, |
2165 | .id = DISP_PW_ID_NONE, | 2165 | .id = DISP_PW_ID_NONE, |
@@ -2180,7 +2180,7 @@ static const struct i915_power_well_desc hsw_power_wells[] = { | |||
2180 | static const struct i915_power_well_desc bdw_power_wells[] = { | 2180 | static const struct i915_power_well_desc bdw_power_wells[] = { |
2181 | { | 2181 | { |
2182 | .name = "always-on", | 2182 | .name = "always-on", |
2183 | .always_on = 1, | 2183 | .always_on = true, |
2184 | .domains = POWER_DOMAIN_MASK, | 2184 | .domains = POWER_DOMAIN_MASK, |
2185 | .ops = &i9xx_always_on_power_well_ops, | 2185 | .ops = &i9xx_always_on_power_well_ops, |
2186 | .id = DISP_PW_ID_NONE, | 2186 | .id = DISP_PW_ID_NONE, |
@@ -2223,7 +2223,7 @@ static const struct i915_power_well_ops vlv_dpio_power_well_ops = { | |||
2223 | static const struct i915_power_well_desc vlv_power_wells[] = { | 2223 | static const struct i915_power_well_desc vlv_power_wells[] = { |
2224 | { | 2224 | { |
2225 | .name = "always-on", | 2225 | .name = "always-on", |
2226 | .always_on = 1, | 2226 | .always_on = true, |
2227 | .domains = POWER_DOMAIN_MASK, | 2227 | .domains = POWER_DOMAIN_MASK, |
2228 | .ops = &i9xx_always_on_power_well_ops, | 2228 | .ops = &i9xx_always_on_power_well_ops, |
2229 | .id = DISP_PW_ID_NONE, | 2229 | .id = DISP_PW_ID_NONE, |
@@ -2299,7 +2299,7 @@ static const struct i915_power_well_desc vlv_power_wells[] = { | |||
2299 | static const struct i915_power_well_desc chv_power_wells[] = { | 2299 | static const struct i915_power_well_desc chv_power_wells[] = { |
2300 | { | 2300 | { |
2301 | .name = "always-on", | 2301 | .name = "always-on", |
2302 | .always_on = 1, | 2302 | .always_on = true, |
2303 | .domains = POWER_DOMAIN_MASK, | 2303 | .domains = POWER_DOMAIN_MASK, |
2304 | .ops = &i9xx_always_on_power_well_ops, | 2304 | .ops = &i9xx_always_on_power_well_ops, |
2305 | .id = DISP_PW_ID_NONE, | 2305 | .id = DISP_PW_ID_NONE, |
@@ -2350,7 +2350,7 @@ bool intel_display_power_well_is_enabled(struct drm_i915_private *dev_priv, | |||
2350 | static const struct i915_power_well_desc skl_power_wells[] = { | 2350 | static const struct i915_power_well_desc skl_power_wells[] = { |
2351 | { | 2351 | { |
2352 | .name = "always-on", | 2352 | .name = "always-on", |
2353 | .always_on = 1, | 2353 | .always_on = true, |
2354 | .domains = POWER_DOMAIN_MASK, | 2354 | .domains = POWER_DOMAIN_MASK, |
2355 | .ops = &i9xx_always_on_power_well_ops, | 2355 | .ops = &i9xx_always_on_power_well_ops, |
2356 | .id = DISP_PW_ID_NONE, | 2356 | .id = DISP_PW_ID_NONE, |
@@ -2442,7 +2442,7 @@ static const struct i915_power_well_desc skl_power_wells[] = { | |||
2442 | static const struct i915_power_well_desc bxt_power_wells[] = { | 2442 | static const struct i915_power_well_desc bxt_power_wells[] = { |
2443 | { | 2443 | { |
2444 | .name = "always-on", | 2444 | .name = "always-on", |
2445 | .always_on = 1, | 2445 | .always_on = true, |
2446 | .domains = POWER_DOMAIN_MASK, | 2446 | .domains = POWER_DOMAIN_MASK, |
2447 | .ops = &i9xx_always_on_power_well_ops, | 2447 | .ops = &i9xx_always_on_power_well_ops, |
2448 | .id = DISP_PW_ID_NONE, | 2448 | .id = DISP_PW_ID_NONE, |
@@ -2500,7 +2500,7 @@ static const struct i915_power_well_desc bxt_power_wells[] = { | |||
2500 | static const struct i915_power_well_desc glk_power_wells[] = { | 2500 | static const struct i915_power_well_desc glk_power_wells[] = { |
2501 | { | 2501 | { |
2502 | .name = "always-on", | 2502 | .name = "always-on", |
2503 | .always_on = 1, | 2503 | .always_on = true, |
2504 | .domains = POWER_DOMAIN_MASK, | 2504 | .domains = POWER_DOMAIN_MASK, |
2505 | .ops = &i9xx_always_on_power_well_ops, | 2505 | .ops = &i9xx_always_on_power_well_ops, |
2506 | .id = DISP_PW_ID_NONE, | 2506 | .id = DISP_PW_ID_NONE, |
@@ -2628,7 +2628,7 @@ static const struct i915_power_well_desc glk_power_wells[] = { | |||
2628 | static const struct i915_power_well_desc cnl_power_wells[] = { | 2628 | static const struct i915_power_well_desc cnl_power_wells[] = { |
2629 | { | 2629 | { |
2630 | .name = "always-on", | 2630 | .name = "always-on", |
2631 | .always_on = 1, | 2631 | .always_on = true, |
2632 | .domains = POWER_DOMAIN_MASK, | 2632 | .domains = POWER_DOMAIN_MASK, |
2633 | .ops = &i9xx_always_on_power_well_ops, | 2633 | .ops = &i9xx_always_on_power_well_ops, |
2634 | .id = DISP_PW_ID_NONE, | 2634 | .id = DISP_PW_ID_NONE, |
@@ -2795,7 +2795,7 @@ static const struct i915_power_well_regs icl_ddi_power_well_regs = { | |||
2795 | static const struct i915_power_well_desc icl_power_wells[] = { | 2795 | static const struct i915_power_well_desc icl_power_wells[] = { |
2796 | { | 2796 | { |
2797 | .name = "always-on", | 2797 | .name = "always-on", |
2798 | .always_on = 1, | 2798 | .always_on = true, |
2799 | .domains = POWER_DOMAIN_MASK, | 2799 | .domains = POWER_DOMAIN_MASK, |
2800 | .ops = &i9xx_always_on_power_well_ops, | 2800 | .ops = &i9xx_always_on_power_well_ops, |
2801 | .id = DISP_PW_ID_NONE, | 2801 | .id = DISP_PW_ID_NONE, |