git: 0b02cfb9488a - main - linuxkpi: Add `pwm_apply_might_sleep()`

From: Jean-Sébastien Pédron <dumbbell_at_FreeBSD.org>
Date: Sat, 29 Mar 2025 15:24:59 UTC
The branch main has been updated by dumbbell:

URL: https://cgit.FreeBSD.org/src/commit/?id=0b02cfb9488a3ac6b75836ca9cee8227b9d4b54c

commit 0b02cfb9488a3ac6b75836ca9cee8227b9d4b54c
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2025-03-03 19:33:18 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2025-03-29 15:18:08 +0000

    linuxkpi: Add `pwm_apply_might_sleep()`
    
    The i915 DRM driver started to use it in Linux 6.8.
    
    Reviewed by:    emaste
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D49386
---
 sys/compat/linuxkpi/common/include/linux/pwm.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/pwm.h b/sys/compat/linuxkpi/common/include/linux/pwm.h
index 59a17f525c91..c0740db675e8 100644
--- a/sys/compat/linuxkpi/common/include/linux/pwm.h
+++ b/sys/compat/linuxkpi/common/include/linux/pwm.h
@@ -91,4 +91,10 @@ pwm_apply_state(struct pwm_device *pwm, const struct pwm_state *state)
 	return (-ENOTSUPP);
 }
 
+static inline int
+pwm_apply_might_sleep(struct pwm_device *pwm, const struct pwm_state *state)
+{
+	return (0);
+}
+
 #endif	/* _LINUXKPI_LINUX_PWM_H_ */