Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Uwe Kleine-König and committed by
Uwe Kleine-König
7cfe1e20 df08fff8

+1 -1
+1 -1
include/linux/pwm.h
··· 369 369 return chip->dev.parent; 370 370 } 371 371 372 - static inline void *pwmchip_get_drvdata(struct pwm_chip *chip) 372 + static inline void *pwmchip_get_drvdata(const struct pwm_chip *chip) 373 373 { 374 374 return dev_get_drvdata(&chip->dev); 375 375 }