Commit b958da79 authored by Yang Yingliang's avatar Yang Yingliang Committed by Alexandre Belloni

rtc: m41t80: correct kerneldoc function names

Fix the following make W=1 kernel build warnings:

  drivers/rtc/rtc-m41t80.c:811: warning: expecting prototype for wdt_close(). Prototype was for wdt_release() instead
  drivers/rtc/rtc-m41t80.c:830: warning: expecting prototype for notify_sys(). Prototype was for wdt_notify_sys() instead
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210517110641.473386-1-yangyingliang@huawei.com
parent a8fdbefd
...@@ -611,10 +611,8 @@ static unsigned long wdt_is_open; ...@@ -611,10 +611,8 @@ static unsigned long wdt_is_open;
static int boot_flag; static int boot_flag;
/** /**
* wdt_ping: * wdt_ping - Reload counter one with the watchdog timeout.
* * We don't bother reloading the cascade counter.
* Reload counter one with the watchdog timeout. We don't bother reloading
* the cascade counter.
*/ */
static void wdt_ping(void) static void wdt_ping(void)
{ {
...@@ -650,9 +648,7 @@ static void wdt_ping(void) ...@@ -650,9 +648,7 @@ static void wdt_ping(void)
} }
/** /**
* wdt_disable: * wdt_disable - disables watchdog.
*
* disables watchdog.
*/ */
static void wdt_disable(void) static void wdt_disable(void)
{ {
...@@ -689,7 +685,7 @@ static void wdt_disable(void) ...@@ -689,7 +685,7 @@ static void wdt_disable(void)
} }
/** /**
* wdt_write: * wdt_write - write to watchdog.
* @file: file handle to the watchdog * @file: file handle to the watchdog
* @buf: buffer to write (unused as data does not matter here * @buf: buffer to write (unused as data does not matter here
* @count: count of bytes * @count: count of bytes
...@@ -715,7 +711,7 @@ static ssize_t wdt_read(struct file *file, char __user *buf, ...@@ -715,7 +711,7 @@ static ssize_t wdt_read(struct file *file, char __user *buf,
} }
/** /**
* wdt_ioctl: * wdt_ioctl - ioctl handler to set watchdog.
* @file: file handle to the device * @file: file handle to the device
* @cmd: watchdog command * @cmd: watchdog command
* @arg: argument pointer * @arg: argument pointer
...@@ -790,7 +786,7 @@ static long wdt_unlocked_ioctl(struct file *file, unsigned int cmd, ...@@ -790,7 +786,7 @@ static long wdt_unlocked_ioctl(struct file *file, unsigned int cmd,
} }
/** /**
* wdt_open: * wdt_open - open a watchdog.
* @inode: inode of device * @inode: inode of device
* @file: file handle to device * @file: file handle to device
* *
...@@ -814,7 +810,7 @@ static int wdt_open(struct inode *inode, struct file *file) ...@@ -814,7 +810,7 @@ static int wdt_open(struct inode *inode, struct file *file)
} }
/** /**
* wdt_close: * wdt_release - release a watchdog.
* @inode: inode to board * @inode: inode to board
* @file: file handle to board * @file: file handle to board
* *
...@@ -827,7 +823,7 @@ static int wdt_release(struct inode *inode, struct file *file) ...@@ -827,7 +823,7 @@ static int wdt_release(struct inode *inode, struct file *file)
} }
/** /**
* notify_sys: * wdt_notify_sys - notify to watchdog.
* @this: our notifier block * @this: our notifier block
* @code: the event being reported * @code: the event being reported
* @unused: unused * @unused: unused
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment