pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()
authorjsg <jsg@openbsd.org>
Sat, 15 Jun 2024 04:16:39 +0000 (04:16 +0000)
committerjsg <jsg@openbsd.org>
Sat, 15 Jun 2024 04:16:39 +0000 (04:16 +0000)
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

index bb9f6fa..cd65ded 100644 (file)
@@ -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
 }