#include <linux/err.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#define PIPGM_PCSR(ch) …
#define PIPGM_PDUT(ch) …
#define PIPGM_PWMC(ch) …
#define PIPGM_PWMC_PWMACT …
#define PIPGM_PWMC_CLK_MASK …
#define PIPGM_PWMC_POLARITY_MASK …
struct visconti_pwm_chip { … };
static inline struct visconti_pwm_chip *visconti_pwm_from_chip(struct pwm_chip *chip)
{ … }
static int visconti_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
const struct pwm_state *state)
{ … }
static int visconti_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm,
struct pwm_state *state)
{ … }
static const struct pwm_ops visconti_pwm_ops = …;
static int visconti_pwm_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id visconti_pwm_of_match[] = …;
MODULE_DEVICE_TABLE(of, visconti_pwm_of_match);
static struct platform_driver visconti_pwm_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_ALIAS(…) …;