Commit 435ae76edd3a90fc4dd2f582052d7362cb8bdad7
Committed by
Simon Glass
1 parent
4a421a67b6
Exists in
v2017.01-smarct4x
and in
30 other branches
dm: timer: Fix several nits
This changes 'Timer' to 'timer' at several places. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Thomas Chou <thomas@wytron.com.tw> Reviewed-by: Simon Glass <sjg@chromium.org>
Showing 3 changed files with 14 additions and 13 deletions Side-by-side Diff
drivers/timer/Kconfig
1 | 1 | menu "Timer Support" |
2 | 2 | |
3 | 3 | config TIMER |
4 | - bool "Enable Driver Model for Timer drivers" | |
4 | + bool "Enable driver model for timer drivers" | |
5 | 5 | depends on DM |
6 | 6 | help |
7 | - Enable driver model for Timer access. It uses the same API as | |
8 | - lib/time.c. But now implemented by the uclass. The first timer | |
7 | + Enable driver model for timer access. It uses the same API as | |
8 | + lib/time.c, but now implemented by the uclass. The first timer | |
9 | 9 | will be used. The timer is usually a 32 bits free-running up |
10 | 10 | counter. There may be no real tick, and no timer interrupt. |
11 | 11 | |
12 | 12 | config ALTERA_TIMER |
13 | - bool "Altera Timer support" | |
13 | + bool "Altera timer support" | |
14 | 14 | depends on TIMER |
15 | 15 | help |
16 | - Select this to enable an timer for Altera devices. Please find | |
16 | + Select this to enable a timer for Altera devices. Please find | |
17 | 17 | details on the "Embedded Peripherals IP User Guide" of Altera. |
18 | 18 | |
19 | 19 | config SANDBOX_TIMER |
20 | - bool "Sandbox Timer support" | |
20 | + bool "Sandbox timer support" | |
21 | 21 | depends on SANDBOX && TIMER |
22 | 22 | help |
23 | 23 | Select this to enable an emulated timer for sandbox. It gets |
drivers/timer/timer-uclass.c
... | ... | @@ -10,10 +10,10 @@ |
10 | 10 | #include <timer.h> |
11 | 11 | |
12 | 12 | /* |
13 | - * Implement a Timer uclass to work with lib/time.c. The timer is usually | |
13 | + * Implement a timer uclass to work with lib/time.c. The timer is usually | |
14 | 14 | * a 32 bits free-running up counter. The get_rate() method is used to get |
15 | 15 | * the input clock frequency of the timer. The get_count() method is used |
16 | - * get the current 32 bits count value. If the hardware is counting down, | |
16 | + * to get the current 32 bits count value. If the hardware is counting down, | |
17 | 17 | * the value should be inversed inside the method. There may be no real |
18 | 18 | * tick, and no timer interrupt. |
19 | 19 | */ |
include/timer.h
... | ... | @@ -10,30 +10,31 @@ |
10 | 10 | /* |
11 | 11 | * Get the current timer count |
12 | 12 | * |
13 | - * @dev: The Timer device | |
13 | + * @dev: The timer device | |
14 | 14 | * @count: pointer that returns the current timer count |
15 | 15 | * @return: 0 if OK, -ve on error |
16 | 16 | */ |
17 | 17 | int timer_get_count(struct udevice *dev, unsigned long *count); |
18 | + | |
18 | 19 | /* |
19 | 20 | * Get the timer input clock frequency |
20 | 21 | * |
21 | - * @dev: The Timer device | |
22 | + * @dev: The timer device | |
22 | 23 | * @return: the timer input clock frequency |
23 | 24 | */ |
24 | 25 | unsigned long timer_get_rate(struct udevice *dev); |
25 | 26 | |
26 | 27 | /* |
27 | - * struct timer_ops - Driver model Timer operations | |
28 | + * struct timer_ops - Driver model timer operations | |
28 | 29 | * |
29 | - * The uclass interface is implemented by all Timer devices which use | |
30 | + * The uclass interface is implemented by all timer devices which use | |
30 | 31 | * driver model. |
31 | 32 | */ |
32 | 33 | struct timer_ops { |
33 | 34 | /* |
34 | 35 | * Get the current timer count |
35 | 36 | * |
36 | - * @dev: The Timer device | |
37 | + * @dev: The timer device | |
37 | 38 | * @count: pointer that returns the current timer count |
38 | 39 | * @return: 0 if OK, -ve on error |
39 | 40 | */ |