Loading drivers/pwm/core.c +0 −1 Original line number Diff line number Diff line Loading @@ -924,6 +924,5 @@ static int __init pwm_debugfs_init(void) return 0; } subsys_initcall(pwm_debugfs_init); #endif /* CONFIG_DEBUG_FS */ include/linux/pwm.h +32 −39 Original line number Diff line number Diff line Loading @@ -87,8 +87,8 @@ struct pwm_device { struct pwm_chip *chip; void *chip_data; unsigned int period; /* in nanoseconds */ unsigned int duty_cycle; /* in nanoseconds */ unsigned int period; unsigned int duty_cycle; enum pwm_polarity polarity; }; Loading Loading @@ -141,23 +141,16 @@ static inline enum pwm_polarity pwm_get_polarity(const struct pwm_device *pwm) * @owner: helps prevent removal of modules exporting active PWMs */ struct pwm_ops { int (*request)(struct pwm_chip *chip, struct pwm_device *pwm); void (*free)(struct pwm_chip *chip, struct pwm_device *pwm); int (*config)(struct pwm_chip *chip, struct pwm_device *pwm, int (*request)(struct pwm_chip *chip, struct pwm_device *pwm); void (*free)(struct pwm_chip *chip, struct pwm_device *pwm); int (*config)(struct pwm_chip *chip, struct pwm_device *pwm, int duty_ns, int period_ns); int (*set_polarity)(struct pwm_chip *chip, struct pwm_device *pwm, int (*set_polarity)(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity); int (*enable)(struct pwm_chip *chip, struct pwm_device *pwm); void (*disable)(struct pwm_chip *chip, struct pwm_device *pwm); int (*enable)(struct pwm_chip *chip, struct pwm_device *pwm); void (*disable)(struct pwm_chip *chip, struct pwm_device *pwm); #ifdef CONFIG_DEBUG_FS void (*dbg_show)(struct pwm_chip *chip, struct seq_file *s); void (*dbg_show)(struct pwm_chip *chip, struct seq_file *s); #endif struct module *owner; }; Loading Loading
drivers/pwm/core.c +0 −1 Original line number Diff line number Diff line Loading @@ -924,6 +924,5 @@ static int __init pwm_debugfs_init(void) return 0; } subsys_initcall(pwm_debugfs_init); #endif /* CONFIG_DEBUG_FS */
include/linux/pwm.h +32 −39 Original line number Diff line number Diff line Loading @@ -87,8 +87,8 @@ struct pwm_device { struct pwm_chip *chip; void *chip_data; unsigned int period; /* in nanoseconds */ unsigned int duty_cycle; /* in nanoseconds */ unsigned int period; unsigned int duty_cycle; enum pwm_polarity polarity; }; Loading Loading @@ -141,23 +141,16 @@ static inline enum pwm_polarity pwm_get_polarity(const struct pwm_device *pwm) * @owner: helps prevent removal of modules exporting active PWMs */ struct pwm_ops { int (*request)(struct pwm_chip *chip, struct pwm_device *pwm); void (*free)(struct pwm_chip *chip, struct pwm_device *pwm); int (*config)(struct pwm_chip *chip, struct pwm_device *pwm, int (*request)(struct pwm_chip *chip, struct pwm_device *pwm); void (*free)(struct pwm_chip *chip, struct pwm_device *pwm); int (*config)(struct pwm_chip *chip, struct pwm_device *pwm, int duty_ns, int period_ns); int (*set_polarity)(struct pwm_chip *chip, struct pwm_device *pwm, int (*set_polarity)(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity); int (*enable)(struct pwm_chip *chip, struct pwm_device *pwm); void (*disable)(struct pwm_chip *chip, struct pwm_device *pwm); int (*enable)(struct pwm_chip *chip, struct pwm_device *pwm); void (*disable)(struct pwm_chip *chip, struct pwm_device *pwm); #ifdef CONFIG_DEBUG_FS void (*dbg_show)(struct pwm_chip *chip, struct seq_file *s); void (*dbg_show)(struct pwm_chip *chip, struct seq_file *s); #endif struct module *owner; }; Loading