Skip to content

Commit

Permalink
clocksource/drivers/samsung_pwm: Constify source IO memory
Browse files Browse the repository at this point in the history
The 'source_reg' IO memory is only read, so the pointer can point to
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-4-krzysztof.kozlowski@canonical.com
  • Loading branch information
Krzysztof Kozlowski authored and Daniel Lezcano committed Jun 4, 2021
1 parent 63e83bd commit b4318ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clocksource/samsung_pwm_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b4318ce

Please sign in to comment.