summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2017-01-04 09:40:54 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-12-21 14:23:36 +0100
commit0e7229d1fb65821ebf2dcfbb0fcc5b98b9394e35 (patch)
tree6ae0d1b37be156479a5f9aed88f4fcbbb3527776 /include
parent0385a44d9f0ed1f90657444fa7ab9c8444098a6e (diff)
pwm: Remove .can_sleep from struct pwm_chip
All PWM devices have been marked as "might sleep" since v4.5, there is no longer a need to differentiate on a per-chip basis. Signed-off-by: Thierry Reding <thierry.reding@gmail.com> (cherry picked from commit 8c0216f377406c7613b67bd18755889026284192)
Diffstat (limited to 'include')
-rw-r--r--include/linux/pwm.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/pwm.h b/include/linux/pwm.h
index 2c6c5114c089..d45e36937483 100644
--- a/include/linux/pwm.h
+++ b/include/linux/pwm.h
@@ -287,8 +287,6 @@ struct pwm_ops {
* @pwms: array of PWM devices allocated by the framework
* @of_xlate: request a PWM device given a device tree PWM specifier
* @of_pwm_n_cells: number of cells expected in the device tree PWM specifier
- * @can_sleep: must be true if the .config(), .enable() or .disable()
- * operations may sleep
*/
struct pwm_chip {
struct device *dev;
@@ -302,7 +300,6 @@ struct pwm_chip {
struct pwm_device * (*of_xlate)(struct pwm_chip *pc,
const struct of_phandle_args *args);
unsigned int of_pwm_n_cells;
- bool can_sleep;
};
/**