Commit 6bc7064a authored by Thierry Reding's avatar Thierry Reding

pwm: Remove useless whitespace

Remove useless tabs used for padding in structure definitions as well as
some blank lines.
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 412820dd
...@@ -924,6 +924,5 @@ static int __init pwm_debugfs_init(void) ...@@ -924,6 +924,5 @@ static int __init pwm_debugfs_init(void)
return 0; return 0;
} }
subsys_initcall(pwm_debugfs_init); subsys_initcall(pwm_debugfs_init);
#endif /* CONFIG_DEBUG_FS */ #endif /* CONFIG_DEBUG_FS */
...@@ -80,16 +80,16 @@ enum { ...@@ -80,16 +80,16 @@ enum {
}; };
struct pwm_device { struct pwm_device {
const char *label; const char *label;
unsigned long flags; unsigned long flags;
unsigned int hwpwm; unsigned int hwpwm;
unsigned int pwm; unsigned int pwm;
struct pwm_chip *chip; struct pwm_chip *chip;
void *chip_data; void *chip_data;
unsigned int period; /* in nanoseconds */ unsigned int period;
unsigned int duty_cycle; /* in nanoseconds */ unsigned int duty_cycle;
enum pwm_polarity polarity; enum pwm_polarity polarity;
}; };
static inline bool pwm_is_enabled(const struct pwm_device *pwm) static inline bool pwm_is_enabled(const struct pwm_device *pwm)
...@@ -141,25 +141,18 @@ static inline enum pwm_polarity pwm_get_polarity(const struct pwm_device *pwm) ...@@ -141,25 +141,18 @@ static inline enum pwm_polarity pwm_get_polarity(const struct pwm_device *pwm)
* @owner: helps prevent removal of modules exporting active PWMs * @owner: helps prevent removal of modules exporting active PWMs
*/ */
struct pwm_ops { struct pwm_ops {
int (*request)(struct pwm_chip *chip, int (*request)(struct pwm_chip *chip, struct pwm_device *pwm);
struct pwm_device *pwm); void (*free)(struct pwm_chip *chip, struct pwm_device *pwm);
void (*free)(struct pwm_chip *chip, int (*config)(struct pwm_chip *chip, struct pwm_device *pwm,
struct pwm_device *pwm); int duty_ns, int period_ns);
int (*config)(struct pwm_chip *chip, int (*set_polarity)(struct pwm_chip *chip, struct pwm_device *pwm,
struct pwm_device *pwm, enum pwm_polarity polarity);
int duty_ns, int period_ns); int (*enable)(struct pwm_chip *chip, struct pwm_device *pwm);
int (*set_polarity)(struct pwm_chip *chip, void (*disable)(struct pwm_chip *chip, struct pwm_device *pwm);
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);
#ifdef CONFIG_DEBUG_FS #ifdef CONFIG_DEBUG_FS
void (*dbg_show)(struct pwm_chip *chip, void (*dbg_show)(struct pwm_chip *chip, struct seq_file *s);
struct seq_file *s);
#endif #endif
struct module *owner; struct module *owner;
}; };
/** /**
...@@ -174,18 +167,18 @@ struct pwm_ops { ...@@ -174,18 +167,18 @@ struct pwm_ops {
* operations may sleep * operations may sleep
*/ */
struct pwm_chip { struct pwm_chip {
struct device *dev; struct device *dev;
struct list_head list; struct list_head list;
const struct pwm_ops *ops; const struct pwm_ops *ops;
int base; int base;
unsigned int npwm; unsigned int npwm;
struct pwm_device *pwms; struct pwm_device *pwms;
struct pwm_device * (*of_xlate)(struct pwm_chip *pc, struct pwm_device * (*of_xlate)(struct pwm_chip *pc,
const struct of_phandle_args *args); const struct of_phandle_args *args);
unsigned int of_pwm_n_cells; unsigned int of_pwm_n_cells;
bool can_sleep; bool can_sleep;
}; };
#if IS_ENABLED(CONFIG_PWM) #if IS_ENABLED(CONFIG_PWM)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment