diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2017-08-04 15:48:28 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-13 15:17:34 -0400 |
commit | ffdec3000a616b7a79bb720073c8ee075639af40 (patch) | |
tree | a0eb4329d8f5106a3d3d51b7d19c781db14c52f6 /include/wdt.h | |
parent | 160cfc4b5a6f761d07ade25472ab1d8408100d1a (diff) | |
download | u-boot-ffdec3000a616b7a79bb720073c8ee075639af40.tar.gz |
wdt: Update uclass to make clear that the timeout is in ms
Convert name to show explicitly that we are using milliseconds. For a
watchdog timer this is precise enough.
No functional change intended.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/wdt.h')
-rw-r--r-- | include/wdt.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/wdt.h b/include/wdt.h index 0b5f05851a..9b90fbeeb3 100644 --- a/include/wdt.h +++ b/include/wdt.h @@ -21,12 +21,12 @@ * Start the timer * * @dev: WDT Device - * @timeout: Number of ticks before timer expires + * @timeout_ms: Number of ticks (milliseconds) before timer expires * @flags: Driver specific flags. This might be used to specify * which action needs to be executed when the timer expires * @return: 0 if OK, -ve on error */ -int wdt_start(struct udevice *dev, u64 timeout, ulong flags); +int wdt_start(struct udevice *dev, u64 timeout_ms, ulong flags); /* * Stop the timer, thus disabling the Watchdog. Use wdt_start to start it again. @@ -67,12 +67,12 @@ struct wdt_ops { * Start the timer * * @dev: WDT Device - * @timeout: Number of ticks before the timer expires + * @timeout_ms: Number of ticks (milliseconds) before the timer expires * @flags: Driver specific flags. This might be used to specify * which action needs to be executed when the timer expires * @return: 0 if OK, -ve on error */ - int (*start)(struct udevice *dev, u64 timeout, ulong flags); + int (*start)(struct udevice *dev, u64 timeout_ms, ulong flags); /* * Stop the timer * |