struct pwm_chip — abstract a PWM controller
struct pwm_chip { struct device * dev; struct list_head list; const struct pwm_ops * ops; int base; unsigned int npwm; struct pwm_device * pwms; struct pwm_device * (* of_xlate) (struct pwm_chip *pc,const struct of_phandle_args *args); unsigned int of_pwm_n_cells; bool can_sleep; };
device providing the PWMs
list node for internal use
callbacks for this PWM controller
number of first PWM controlled by this chip
number of PWMs controlled by this chip
array of PWM devices allocated by the framework
request a PWM device given a device tree PWM specifier
number of cells expected in the device tree PWM specifier
must be true if the .config
, .enable
or .disable
operations may sleep