mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
clocksource/drivers/samsung_pwm: Minor whitespace cleanup
Cleanup the code to be slightly more readable and follow coding convention - only whitespace. This fixes checkpatch warnings: WARNING: Block comments should align the * on each line WARNING: please, no space before tabs WARNING: Missing a blank line after declarations CHECK: Alignment should match open parenthesis 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-1-krzysztof.kozlowski@canonical.com
This commit is contained in:
committed by
Daniel Lezcano
parent
4f9f4f0f62
commit
a0143f5ac0
@@ -22,7 +22,6 @@
|
||||
|
||||
#include <clocksource/samsung_pwm.h>
|
||||
|
||||
|
||||
/*
|
||||
* Clocksource driver
|
||||
*/
|
||||
@@ -225,6 +224,7 @@ static void samsung_clockevent_resume(struct clock_event_device *cev)
|
||||
|
||||
if (pwm.variant.has_tint_cstat) {
|
||||
u32 mask = (1 << pwm.event_id);
|
||||
|
||||
writel(mask | (mask << 5), pwm.base + REG_TINT_CSTAT);
|
||||
}
|
||||
}
|
||||
@@ -248,6 +248,7 @@ static irqreturn_t samsung_clock_event_isr(int irq, void *dev_id)
|
||||
|
||||
if (pwm.variant.has_tint_cstat) {
|
||||
u32 mask = (1 << pwm.event_id);
|
||||
|
||||
writel(mask | (mask << 5), pwm.base + REG_TINT_CSTAT);
|
||||
}
|
||||
|
||||
@@ -282,6 +283,7 @@ static void __init samsung_clockevent_init(void)
|
||||
|
||||
if (pwm.variant.has_tint_cstat) {
|
||||
u32 mask = (1 << pwm.event_id);
|
||||
|
||||
writel(mask | (mask << 5), pwm.base + REG_TINT_CSTAT);
|
||||
}
|
||||
}
|
||||
@@ -398,7 +400,8 @@ 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)
|
||||
unsigned int *irqs,
|
||||
struct samsung_pwm_variant *variant)
|
||||
{
|
||||
pwm.base = base;
|
||||
memcpy(&pwm.variant, variant, sizeof(pwm.variant));
|
||||
|
||||
@@ -27,6 +27,7 @@ struct samsung_pwm_variant {
|
||||
};
|
||||
|
||||
void samsung_pwm_clocksource_init(void __iomem *base,
|
||||
unsigned int *irqs, struct samsung_pwm_variant *variant);
|
||||
unsigned int *irqs,
|
||||
struct samsung_pwm_variant *variant);
|
||||
|
||||
#endif /* __CLOCKSOURCE_SAMSUNG_PWM_H */
|
||||
|
||||
Reference in New Issue
Block a user