Skip to content
  • Bin Shi's avatar
    clocksource: prima2: fix some minor checkpatch issues · 4c1ad709
    Bin Shi authored
    
    
    Fix the "line over 80 characters". users of the codes - key customers
    really care about that.
    
    WARNING: line over 80 characters
    64: FILE: timer-prima2.c:64:
    +       WARN_ON(!(readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_STATUS) & BIT(0)));
    
    WARNING: line over 80 characters
    80: FILE: timer-prima2.c:80:
    +       writel_relaxed(SIRFSOC_TIMER_LATCH_BIT, sirfsoc_timer_base + SIRFSOC_TIMER_LATCH);
    
    WARNING: line over 80 characters
    82: FILE: timer-prima2.c:82:
    +       cycles = (cycles << 32) | readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_LATCHED_LO);
    
    WARNING: line over 80 characters
    92: FILE: timer-prima2.c:92:
    +       writel_relaxed(SIRFSOC_TIMER_LATCH_BIT, sirfsoc_timer_base + SIRFSOC_TIMER_LATCH);
    
    WARNING: line over 80 characters
    96: FILE: timer-prima2.c:96:
    +       writel_relaxed(SIRFSOC_TIMER_LATCH_BIT, sirfsoc_timer_base + SIRFSOC_TIMER_LATCH);
    
    WARNING: line over 80 characters
    111: FILE: timer-prima2.c:111:
    +               writel_relaxed(val | BIT(0), sirfsoc_timer_base + SIRFSOC_TIMER_INT_EN);
    
    WARNING: line over 80 characters
    114: FILE: timer-prima2.c:114:
    +               writel_relaxed(val & ~BIT(0), sirfsoc_timer_base + SIRFSOC_TIMER_INT_EN);
    
    WARNING: line over 80 characters
    126: FILE: timer-prima2.c:126:
    +       writel_relaxed(SIRFSOC_TIMER_LATCH_BIT, sirfsoc_timer_base + SIRFSOC_TIMER_LATCH);
    
    WARNING: line over 80 characters
    129: FILE: timer-prima2.c:129:
    +               sirfsoc_timer_reg_val[i] = readl_relaxed(sirfsoc_timer_base + sirfsoc_timer_reg_list[i]);
    
    WARNING: line over 80 characters
    137: FILE: timer-prima2.c:137:
    +               writel_relaxed(sirfsoc_timer_reg_val[i], sirfsoc_timer_base + sirfsoc_timer_reg_list[i]);
    
    WARNING: line over 80 characters
    139: FILE: timer-prima2.c:139:
    +       writel_relaxed(sirfsoc_timer_reg_val[SIRFSOC_TIMER_REG_CNT - 2], sirfsoc_timer_base + SIRFSOC_TIMER_COUNTER_LO);
    
    WARNING: line over 80 characters
    140: FILE: timer-prima2.c:140:
    +       writel_relaxed(sirfsoc_timer_reg_val[SIRFSOC_TIMER_REG_CNT - 1], sirfsoc_timer_base + SIRFSOC_TIMER_COUNTER_HI);
    
    WARNING: line over 80 characters
    216: FILE: timer-prima2.c:216:
    +CLOCKSOURCE_OF_DECLARE(sirfsoc_prima2_timer, "sirf,prima2-tick", sirfsoc_prima2_timer_init);
    
    total: 0 errors, 13 warnings, 216 lines checked
    
    timer-prima2.c has style problems, please review.
    
    If any of these errors are false positives, please report
    them to the maintainer, see CHECKPATCH in MAINTAINERS.
    
    Signed-off-by: default avatarBin Shi <Bin.Shi@csr.com>
    Signed-off-by: default avatarBarry Song <Baohua.Song@csr.com>
    4c1ad709