xref: /openbsd/sys/dev/pci/drm/include/linux/pwm.h (revision 73471bf0)
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 struct pwm_state {
12 };
13 
14 static inline struct pwm_device *
15 pwm_get(struct device *dev, const char *consumer)
16 {
17 	return ERR_PTR(-ENODEV);
18 }
19 
20 static inline void
21 pwm_put(struct pwm_device *pwm)
22 {
23 }
24 
25 static inline unsigned int
26 pwm_get_duty_cycle(const struct pwm_device *pwm)
27 {
28 	return 0;
29 }
30 
31 static inline int
32 pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns)
33 {
34 	return -EINVAL;
35 }
36 
37 static inline int
38 pwm_enable(struct pwm_device *pwm)
39 {
40 	return -EINVAL;
41 }
42 
43 static inline void
44 pwm_disable(struct pwm_device *pwm)
45 {
46 }
47 
48 static inline void
49 pwm_apply_args(struct pwm_device *pwm)
50 {
51 }
52 
53 #endif
54