[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <162403222155.19906.7758421303806023527.tip-bot2@tip-bot2>
Date: Fri, 18 Jun 2021 16:03:41 -0000
From: "tip-bot2 for Krzysztof Kozlowski" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>,
Daniel Lezcano <daniel.lezcano@...aro.org>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: timers/core] clocksource/drivers/samsung_pwm: Constify source IO memory
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@...onical.com>
AuthorDate: Thu, 06 May 2021 16:27:28 -04:00
Committer: Daniel Lezcano <daniel.lezcano@...aro.org>
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@...onical.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@...aro.org>
Link: https://lore.kernel.org/r/20210506202729.157260-4-krzysztof.kozlowski@canonical.com
---
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;
Powered by blists - more mailing lists