summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-05-06 16:27:26 -0400
committerDaniel Lezcano <daniel.lezcano@linaro.org>2021-06-04 10:12:11 +0200
commitbb08e96575dbbd49acb49999dd0d7ffedb5c1608 (patch)
tree1e392fc457b42f8550044b63cc0eee3e8193fcf1 /drivers
parenta0143f5ac0594d73ef91c2336d8172217ff9cd72 (diff)
downloadlinux-stable-bb08e96575dbbd49acb49999dd0d7ffedb5c1608.tar.gz
linux-stable-bb08e96575dbbd49acb49999dd0d7ffedb5c1608.tar.bz2
linux-stable-bb08e96575dbbd49acb49999dd0d7ffedb5c1608.zip
clocksource/drivers/samsung_pwm: Constify passed structure
The 'struct samsung_pwm_variant' argument passed to initialization functions is not modified, so it can be made const for safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20210506202729.157260-2-krzysztof.kozlowski@canonical.com
Diffstat (limited to 'drivers')
-rw-r--r--drivers/clocksource/samsung_pwm_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/samsung_pwm_timer.c b/drivers/clocksource/samsung_pwm_timer.c
index 69bf79c7f462..bfad61b509f9 100644
--- a/drivers/clocksource/samsung_pwm_timer.c
+++ b/drivers/clocksource/samsung_pwm_timer.c
@@ -401,7 +401,7 @@ static int __init _samsung_pwm_clocksource_init(void)
void __init samsung_pwm_clocksource_init(void __iomem *base,
unsigned int *irqs,
- struct samsung_pwm_variant *variant)
+ const struct samsung_pwm_variant *variant)
{
pwm.base = base;
memcpy(&pwm.variant, variant, sizeof(pwm.variant));