[tip: timers/core] clocksource/drivers/samsung_pwm: Constify source IO memory

From: tip-bot2 for Krzysztof Kozlowski
Date: Fri Jun 18 2021 - 12:04:02 EST


The following commit has been merged into the timers/core branch of tip:

Commit-ID: b4318ce203db8f8b7004e7ab82a957f894660c88
Gitweb: https://git.kernel.org/tip/b4318ce203db8f8b7004e7ab82a957f894660c88
Author: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxx>
AuthorDate: Thu, 06 May 2021 16:27:28 -04:00
Committer: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
CommitterDate: Fri, 04 Jun 2021 10:12:13 +02:00

clocksource/drivers/samsung_pwm: Constify source IO memory

The 'source_reg' IO memory is only read, so the pointer can point to
const for safety.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxx>
Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
Link: https://lore.kernel.org/r/20210506202729.157260-4-krzysztof.kozlowski@xxxxxxxxxxxxx
---
drivers/clocksource/samsung_pwm_timer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/samsung_pwm_timer.c b/drivers/clocksource/samsung_pwm_timer.c
index 55e2f9f..6e46781 100644
--- a/drivers/clocksource/samsung_pwm_timer.c
+++ b/drivers/clocksource/samsung_pwm_timer.c
@@ -61,7 +61,7 @@ EXPORT_SYMBOL(samsung_pwm_lock);

struct samsung_pwm_clocksource {
void __iomem *base;
- void __iomem *source_reg;
+ const void __iomem *source_reg;
unsigned int irq[SAMSUNG_PWM_NUM];
struct samsung_pwm_variant variant;