Message ID | 1597902349-8998-11-git-send-email-chunfeng.yun@mediatek.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v2,01/11] usb: early: convert to readl_poll_timeout_atomic() | expand |
Hello! On 20.08.2020 8:45, Chunfeng Yun wrote: > Arguments description of read_poll_timeout_atomic() if out of date, s/if/is/? > update it. > > Cc: Alan Stern <stern@rowland.harvard.edu> > Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> [...] MBR, Sergei
On Thu, 2020-08-20 at 13:14 +0300, Sergei Shtylyov wrote: > Hello! > > On 20.08.2020 8:45, Chunfeng Yun wrote: > > > Arguments description of read_poll_timeout_atomic() if out of date, > > s/if/is/? Will fix it, thanks > > > update it. > > > > Cc: Alan Stern <stern@rowland.harvard.edu> > > Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> > [...] > > MBR, Sergei
diff --git a/include/linux/iopoll.h b/include/linux/iopoll.h index bc89ac6..2c8860e 100644 --- a/include/linux/iopoll.h +++ b/include/linux/iopoll.h @@ -60,8 +60,7 @@ /** * read_poll_timeout_atomic - Periodically poll an address until a condition is * met or a timeout occurs - * @op: accessor function (takes @addr as its only argument) - * @addr: Address to poll + * @op: accessor function (takes @args as its arguments) * @val: Variable to read the value into * @cond: Break condition (usually involving @val) * @delay_us: Time to udelay between reads in us (0 tight-loops). Should @@ -69,6 +68,7 @@ * Documentation/timers/timers-howto.rst). * @timeout_us: Timeout in us, 0 means never timeout * @delay_before_read: if it is true, delay @delay_us before read. + * @args: arguments for @op poll * * Returns 0 on success and -ETIMEDOUT upon a timeout. In either * case, the last read value at @args is stored in @val.
Arguments description of read_poll_timeout_atomic() if out of date, update it. Cc: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> --- v2: new patch, suggested by Alan --- include/linux/iopoll.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)