#include <linux/clk.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
struct clps711x_chip { … };
static inline struct clps711x_chip *to_clps711x_chip(struct pwm_chip *chip)
{ … }
static int clps711x_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm)
{ … }
static int clps711x_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
const struct pwm_state *state)
{ … }
static const struct pwm_ops clps711x_pwm_ops = …;
static int clps711x_pwm_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id __maybe_unused clps711x_pwm_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, clps711x_pwm_dt_ids);
static struct platform_driver clps711x_pwm_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;