xref: /openbsd/sys/dev/pci/drm/include/linux/pwm.h (revision 09467b48)
1 /* Public domain. */
2 
3 #ifndef _LINUX_PWM_H
4 #define _LINUX_PWM_H
5 
6 #include <sys/errno.h>
7 #include <linux/err.h>
8 
9 struct pwm_device;
10 
11 static inline struct pwm_device *
12 pwm_get(struct device *dev, const char *consumer)
13 {
14 	return ERR_PTR(-ENODEV);
15 }
16 
17 static inline void
18 pwm_put(struct pwm_device *pwm)
19 {
20 }
21 
22 static inline unsigned int
23 pwm_get_duty_cycle(const struct pwm_device *pwm)
24 {
25 	return 0;
26 }
27 
28 static inline int
29 pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns)
30 {
31 	return -EINVAL;
32 }
33 
34 static inline int
35 pwm_enable(struct pwm_device *pwm)
36 {
37 	return -EINVAL;
38 }
39 
40 static inline void
41 pwm_disable(struct pwm_device *pwm)
42 {
43 }
44 
45 static inline void
46 pwm_apply_args(struct pwm_device *pwm)
47 {
48 }
49 
50 #endif
51