Skip to content

Commit

Permalink
rtc: m41t80: correct kerneldoc function names
Browse files Browse the repository at this point in the history
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: Yang Yingliang <[email protected]>
Reviewed-by: Randy Dunlap <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
Yang Yingliang authored and alexandrebelloni committed Jun 20, 2021
1 parent a8fdbef commit b958da7
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions drivers/rtc/rtc-m41t80.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,8 @@ static unsigned long wdt_is_open;
static int boot_flag;

/**
* wdt_ping:
*
* Reload counter one with the watchdog timeout. We don't bother reloading
* the cascade counter.
* wdt_ping - Reload counter one with the watchdog timeout.
* We don't bother reloading the cascade counter.
*/
static void wdt_ping(void)
{
Expand Down Expand Up @@ -650,9 +648,7 @@ static void wdt_ping(void)
}

/**
* wdt_disable:
*
* disables watchdog.
* wdt_disable - disables watchdog.
*/
static void wdt_disable(void)
{
Expand Down Expand Up @@ -689,7 +685,7 @@ static void wdt_disable(void)
}

/**
* wdt_write:
* wdt_write - write to watchdog.
* @file: file handle to the watchdog
* @buf: buffer to write (unused as data does not matter here
* @count: count of bytes
Expand All @@ -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
* @cmd: watchdog command
* @arg: argument pointer
Expand Down Expand Up @@ -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
* @file: file handle to device
*
Expand All @@ -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
* @file: file handle to board
*
Expand All @@ -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
* @code: the event being reported
* @unused: unused
Expand Down

0 comments on commit b958da7

Please sign in to comment.