Skip to content

Commit 278150b

Browse files
claudiubezneadlezcano
authored andcommitted
clocksource/drivers/timer-microchip-pit64b: Fix compilation warnings
Fix the following compilation warnings: timer-microchip-pit64b.c:68: warning: cannot understand function prototype: 'struct mchp_pit64b_clkevt ' timer-microchip-pit64b.c:82: warning: cannot understand function prototype: 'struct mchp_pit64b_clksrc ' timer-microchip-pit64b.c:283: warning: Function parameter or member 'timer' not described in 'mchp_pit64b_init_mode' timer-microchip-pit64b.c:283: warning: Function parameter or member 'max_rate' not described in 'mchp_pit64b_init_mode' Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Link: https://lore.kernel.org/r/20220609094041.1796372-4-claudiu.beznea@microchip.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent b02180e commit 278150b

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

drivers/clocksource/timer-microchip-pit64b.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ struct mchp_pit64b_timer {
6161
};
6262

6363
/**
64-
* mchp_pit64b_clkevt - PIT64B clockevent data structure
64+
* struct mchp_pit64b_clkevt - PIT64B clockevent data structure
6565
* @timer: PIT64B timer
6666
* @clkevt: clockevent
6767
*/
@@ -75,7 +75,7 @@ struct mchp_pit64b_clkevt {
7575
struct mchp_pit64b_clkevt, clkevt))
7676

7777
/**
78-
* mchp_pit64b_clksrc - PIT64B clocksource data structure
78+
* struct mchp_pit64b_clksrc - PIT64B clocksource data structure
7979
* @timer: PIT64B timer
8080
* @clksrc: clocksource
8181
*/
@@ -245,8 +245,10 @@ static void __init mchp_pit64b_pres_compute(u32 *pres, u32 clk_rate,
245245
}
246246

247247
/**
248-
* mchp_pit64b_init_mode - prepare PIT64B mode register value to be used at
249-
* runtime; this includes prescaler and SGCLK bit
248+
* mchp_pit64b_init_mode() - prepare PIT64B mode register value to be used at
249+
* runtime; this includes prescaler and SGCLK bit
250+
* @timer: pointer to pit64b timer to init
251+
* @max_rate: maximum rate that timer's clock could use
250252
*
251253
* PIT64B timer may be fed by gclk or pclk. When gclk is used its rate has to
252254
* be at least 3 times lower that pclk's rate. pclk rate is fixed, gclk rate

0 commit comments

Comments
 (0)