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