diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2015-11-13 00:11:14 -0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-12-01 06:23:51 -0700 |
commit | 435ae76edd3a90fc4dd2f582052d7362cb8bdad7 (patch) | |
tree | 9f04def807558cbfc95d76af5beacc9eae3a5fd7 | |
parent | 4a421a67b6f36678bfd27b7fedc0de35faf94c76 (diff) | |
download | u-boot-imx-435ae76edd3a90fc4dd2f582052d7362cb8bdad7.zip u-boot-imx-435ae76edd3a90fc4dd2f582052d7362cb8bdad7.tar.gz u-boot-imx-435ae76edd3a90fc4dd2f582052d7362cb8bdad7.tar.bz2 |
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>
-rw-r--r-- | drivers/timer/Kconfig | 12 | ||||
-rw-r--r-- | drivers/timer/timer-uclass.c | 4 | ||||
-rw-r--r-- | include/timer.h | 11 |
3 files changed, 14 insertions, 13 deletions
diff --git a/drivers/timer/Kconfig b/drivers/timer/Kconfig index 601e493..029af64 100644 --- a/drivers/timer/Kconfig +++ b/drivers/timer/Kconfig @@ -1,23 +1,23 @@ menu "Timer Support" config TIMER - bool "Enable Driver Model for Timer drivers" + bool "Enable driver model for timer drivers" depends on DM help - Enable driver model for Timer access. It uses the same API as - lib/time.c. But now implemented by the uclass. The first timer + Enable driver model for timer access. It uses the same API as + lib/time.c, but now implemented by the uclass. The first timer will be used. The timer is usually a 32 bits free-running up counter. There may be no real tick, and no timer interrupt. config ALTERA_TIMER - bool "Altera Timer support" + bool "Altera timer support" depends on TIMER help - Select this to enable an timer for Altera devices. Please find + Select this to enable a timer for Altera devices. Please find details on the "Embedded Peripherals IP User Guide" of Altera. config SANDBOX_TIMER - bool "Sandbox Timer support" + bool "Sandbox timer support" depends on SANDBOX && TIMER help Select this to enable an emulated timer for sandbox. It gets diff --git a/drivers/timer/timer-uclass.c b/drivers/timer/timer-uclass.c index 12aee5b..82c6897 100644 --- a/drivers/timer/timer-uclass.c +++ b/drivers/timer/timer-uclass.c @@ -10,10 +10,10 @@ #include <timer.h> /* - * Implement a Timer uclass to work with lib/time.c. The timer is usually + * Implement a timer uclass to work with lib/time.c. The timer is usually * a 32 bits free-running up counter. The get_rate() method is used to get * the input clock frequency of the timer. The get_count() method is used - * get the current 32 bits count value. If the hardware is counting down, + * to get the current 32 bits count value. If the hardware is counting down, * the value should be inversed inside the method. There may be no real * tick, and no timer interrupt. */ diff --git a/include/timer.h b/include/timer.h index cdf385d..ed5c685 100644 --- a/include/timer.h +++ b/include/timer.h @@ -10,30 +10,31 @@ /* * Get the current timer count * - * @dev: The Timer device + * @dev: The timer device * @count: pointer that returns the current timer count * @return: 0 if OK, -ve on error */ int timer_get_count(struct udevice *dev, unsigned long *count); + /* * Get the timer input clock frequency * - * @dev: The Timer device + * @dev: The timer device * @return: the timer input clock frequency */ unsigned long timer_get_rate(struct udevice *dev); /* - * struct timer_ops - Driver model Timer operations + * struct timer_ops - Driver model timer operations * - * The uclass interface is implemented by all Timer devices which use + * The uclass interface is implemented by all timer devices which use * driver model. */ struct timer_ops { /* * Get the current timer count * - * @dev: The Timer device + * @dev: The timer device * @count: pointer that returns the current timer count * @return: 0 if OK, -ve on error */ |