diff options
-rw-r--r-- | include/linux/pwm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pwm.h b/include/linux/pwm.h index 9ece4e5d3815..bf0469b2201d 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -369,7 +369,7 @@ static inline struct device *pwmchip_parent(const struct pwm_chip *chip) return chip->dev.parent; } -static inline void *pwmchip_get_drvdata(struct pwm_chip *chip) +static inline void *pwmchip_get_drvdata(const struct pwm_chip *chip) { return dev_get_drvdata(&chip->dev); } |