diff options
| author | Ingo Molnar <mingo@kernel.org> | 2022-09-21 09:58:02 +0200 | 
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2022-09-21 09:58:02 +0200 | 
| commit | 74656d03ac36fabb16b9df5221cf398ee3a9ca08 (patch) | |
| tree | 0600e619ac817e2c016c148810814f55280316cc /include/linux/pwm.h | |
| parent | 0d97db026509c1a13f732b22670ab1f0ac9d8d87 (diff) | |
| parent | 521a547ced6477c54b4b0cc206000406c221b4d6 (diff) | |
Merge tag 'v6.0-rc6' into locking/core, to refresh the branch
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/pwm.h')
| -rw-r--r-- | include/linux/pwm.h | 35 | 
1 files changed, 10 insertions, 25 deletions
diff --git a/include/linux/pwm.h b/include/linux/pwm.h index 9771a0761a40..9429930c5566 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -6,9 +6,6 @@  #include <linux/mutex.h>  #include <linux/of.h> -struct pwm_capture; -struct seq_file; -  struct pwm_chip;  /** @@ -252,6 +249,16 @@ pwm_set_relative_duty_cycle(struct pwm_state *state, unsigned int duty_cycle,  }  /** + * struct pwm_capture - PWM capture data + * @period: period of the PWM signal (in nanoseconds) + * @duty_cycle: duty cycle of the PWM signal (in nanoseconds) + */ +struct pwm_capture { +	unsigned int period; +	unsigned int duty_cycle; +}; + +/**   * struct pwm_ops - PWM controller operations   * @request: optional hook for requesting a PWM   * @free: optional hook for freeing a PWM @@ -261,10 +268,6 @@ pwm_set_relative_duty_cycle(struct pwm_state *state, unsigned int duty_cycle,   *	       called once per PWM device when the PWM chip is   *	       registered.   * @owner: helps prevent removal of modules exporting active PWMs - * @config: configure duty cycles and period length for this PWM - * @set_polarity: configure the polarity of this PWM - * @enable: enable PWM output toggling - * @disable: disable PWM output toggling   */  struct pwm_ops {  	int (*request)(struct pwm_chip *chip, struct pwm_device *pwm); @@ -276,14 +279,6 @@ struct pwm_ops {  	void (*get_state)(struct pwm_chip *chip, struct pwm_device *pwm,  			  struct pwm_state *state);  	struct module *owner; - -	/* Only used by legacy drivers */ -	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, -			    enum pwm_polarity polarity); -	int (*enable)(struct pwm_chip *chip, struct pwm_device *pwm); -	void (*disable)(struct pwm_chip *chip, struct pwm_device *pwm);  };  /** @@ -312,16 +307,6 @@ struct pwm_chip {  	struct pwm_device *pwms;  }; -/** - * struct pwm_capture - PWM capture data - * @period: period of the PWM signal (in nanoseconds) - * @duty_cycle: duty cycle of the PWM signal (in nanoseconds) - */ -struct pwm_capture { -	unsigned int period; -	unsigned int duty_cycle; -}; -  #if IS_ENABLED(CONFIG_PWM)  /* PWM user APIs */  struct pwm_device *pwm_request(int pwm_id, const char *label);  | 
