diff options
| author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2026-08-26 17:31:00 +0300 |
|---|---|---|
| committer | Jani Nikula <jani.nikula@intel.com> | 2026-08-31 12:56:49 +0300 |
| commit | a154f2ae8eecbf2a4f97376d29b8d38c198b54e7 (patch) | |
| tree | b35b6019c1011b50fbab0e3e1279f4d6e3483f22 /drivers/gpu | |
| parent | aad969968824e97ba8d70dd7a95691f750438ebd (diff) | |
| download | linux-a154f2ae8eecbf2a4f97376d29b8d38c198b54e7.tar.gz linux-a154f2ae8eecbf2a4f97376d29b8d38c198b54e7.zip | |
drm/i915/cdclk: Fix dg2_power_well_count() return type
dg2_power_well_count() is supposed to return an integer,
not a boolean. Make it so.
Fixes: 9112ce99c1d7 ("drm/i915/cdclk: Extract dg2_power_well_count()")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260826143100.19401-1-ville.syrjala@linux.intel.com
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
(cherry picked from commit dcf423710d0253d7d729c3992bbae0c6197c9c22)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/i915/display/intel_cdclk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_cdclk.c b/drivers/gpu/drm/i915/display/intel_cdclk.c index 9e5e15b0c4d1..a1a5720996b7 100644 --- a/drivers/gpu/drm/i915/display/intel_cdclk.c +++ b/drivers/gpu/drm/i915/display/intel_cdclk.c @@ -2715,8 +2715,8 @@ static void intel_set_cdclk(struct intel_display *display, } } -static bool dg2_power_well_count(struct intel_display *display, - const struct intel_cdclk_state *cdclk_state) +static int dg2_power_well_count(struct intel_display *display, + const struct intel_cdclk_state *cdclk_state) { return display->platform.dg2 ? hweight8(cdclk_state->active_pipes) : 0; } |
