From 2e4fb78a2a7ee85037db13f8fc231c50b15cc442 Mon Sep 17 00:00:00 2001 From: jsg Date: Sat, 15 Jun 2024 04:16:39 +0000 Subject: [PATCH] pwm: Rename pwm_apply_state() to pwm_apply_might_sleep() From Sean Young a10c3d5ff9a343c0b898215253750fedc38ac765 in linux-6.6.y/6.6.33 c748a6d77c06a78651030e17da6beb278a1c9470 in mainline linux --- sys/dev/pci/drm/i915/display/intel_backlight.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/drm/i915/display/intel_backlight.c b/sys/dev/pci/drm/i915/display/intel_backlight.c index bb9f6faf7ef..cd65ded1f98 100644 --- a/sys/dev/pci/drm/i915/display/intel_backlight.c +++ b/sys/dev/pci/drm/i915/display/intel_backlight.c @@ -280,7 +280,7 @@ static void ext_pwm_set_backlight(const struct drm_connector_state *conn_state, struct intel_panel *panel = &to_intel_connector(conn_state->connector)->panel; pwm_set_relative_duty_cycle(&panel->backlight.pwm_state, level, 100); - pwm_apply_state(panel->backlight.pwm, &panel->backlight.pwm_state); + pwm_apply_might_sleep(panel->backlight.pwm, &panel->backlight.pwm_state); #endif } @@ -436,7 +436,7 @@ static void ext_pwm_disable_backlight(const struct drm_connector_state *old_conn intel_backlight_set_pwm_level(old_conn_state, level); panel->backlight.pwm_state.enabled = false; - pwm_apply_state(panel->backlight.pwm, &panel->backlight.pwm_state); + pwm_apply_might_sleep(panel->backlight.pwm, &panel->backlight.pwm_state); #endif } @@ -761,7 +761,7 @@ static void ext_pwm_enable_backlight(const struct intel_crtc_state *crtc_state, pwm_set_relative_duty_cycle(&panel->backlight.pwm_state, level, 100); panel->backlight.pwm_state.enabled = true; - pwm_apply_state(panel->backlight.pwm, &panel->backlight.pwm_state); + pwm_apply_might_sleep(panel->backlight.pwm, &panel->backlight.pwm_state); #endif } -- 2.20.1