mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
pwm: Make chip parameter to pwmchip_get_drvdata() a const pointer
dev_get_drvdata()'s parameter is a const pointer, so the chip passed to pwmchip_get_drvdata() can be const, too. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Link: https://lore.kernel.org/r/20250403151134.266388-2-u.kleine-koenig@baylibre.com Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
This commit is contained in:
parent
df08fff8ad
commit
7cfe1e208b
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user