summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/include/linux/pwm.h
blob: c2f54f3cc26a40d03e6faf5ca8ea4ce079560501 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* Public domain. */

#ifndef _LINUX_PWM_H
#define _LINUX_PWM_H

#include <sys/errno.h>
#include <linux/err.h>

struct pwm_device;

static inline struct pwm_device *
pwm_get(struct device *dev, const char *consumer)
{
	return ERR_PTR(-ENODEV);
}

static inline void
pwm_put(struct pwm_device *pwm)
{
}

static inline unsigned int
pwm_get_duty_cycle(const struct pwm_device *pwm)
{
	return 0;
}

static inline int
pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns)
{
	return -EINVAL;
}

static inline int
pwm_enable(struct pwm_device *pwm)
{
	return -EINVAL;
}

static inline void
pwm_disable(struct pwm_device *pwm)
{
}

static inline void
pwm_apply_args(struct pwm_device *pwm)
{
}

#endif