]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
timer: document the unit of the timer rate
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 7 Sep 2023 07:54:42 +0000 (09:54 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 9 Sep 2023 04:12:47 +0000 (06:12 +0200)
To avoid confusion document that timer_dev_priv.clock_rate and
timer_get_rate() yield the timer rate in hertz.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/timer.h

index 311ce6b2c3adc3bc0375d8219133fd1a81822036..091d8dfa2287a3259069f3b32d5bf1174fcfcfc1 100644 (file)
@@ -55,10 +55,10 @@ u64 timer_conv_64(u32 count);
 int timer_get_count(struct udevice *dev, u64 *count);
 
 /**
- * timer_get_rate() - Get the timer input clock frequency
+ * timer_get_rate() - Get the timer input clock frequency in Hz
  * @dev: The timer device
  *
- * Return: the timer input clock frequency
+ * Return: the timer input clock frequency in Hz
  */
 unsigned long timer_get_rate(struct udevice *dev);
 
@@ -87,7 +87,7 @@ struct timer_ops {
 /**
  * struct timer_dev_priv - information about a device used by the uclass
  *
- * @clock_rate: the timer input clock frequency
+ * @clock_rate: the timer input clock frequency in Hz
  */
 struct timer_dev_priv {
        unsigned long clock_rate;