#include <linux/kernel.h>
#include <linux/math64.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <linux/pwm.h>
struct pwm_clk_chip { … };
static inline struct pwm_clk_chip *to_pwm_clk_chip(struct pwm_chip *chip)
{ … }
static int pwm_clk_apply(struct pwm_chip *chip, struct pwm_device *pwm,
const struct pwm_state *state)
{ … }
static const struct pwm_ops pwm_clk_ops = …;
static int pwm_clk_probe(struct platform_device *pdev)
{ … }
static void pwm_clk_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id pwm_clk_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, pwm_clk_dt_ids);
static struct platform_driver pwm_clk_driver = …;
module_platform_driver(…) …;
MODULE_ALIAS(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;