Skip to content

Commit 7cfe1e2

Browse files
ukleinekUwe Kleine-König
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]>
1 parent df08fff commit 7cfe1e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/pwm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ static inline struct device *pwmchip_parent(const struct pwm_chip *chip)
369369
return chip->dev.parent;
370370
}
371371

372-
static inline void *pwmchip_get_drvdata(struct pwm_chip *chip)
372+
static inline void *pwmchip_get_drvdata(const struct pwm_chip *chip)
373373
{
374374
return dev_get_drvdata(&chip->dev);
375375
}

0 commit comments

Comments
 (0)