diff options
author | Johan Hovold <johan@kernel.org> | 2018-11-14 18:09:01 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-27 21:44:21 +0300 |
commit | 22d66c85fde3b1ca27ab596357e8e2505af7e388 (patch) | |
tree | c9ef672b555c058fa9e950479dbf499f87f3218d /drivers/gnss/sirf.c | |
parent | dc93967b8094b64ea3fd85bf933561d89b6951af (diff) | |
download | linux-22d66c85fde3b1ca27ab596357e8e2505af7e388.tar.xz |
serdev: use zero to indicate infinite write timeout
Use zero to indicate infinite timeout for the synchronous
serdev_device_write() helper.
This allows drivers to specify an infinite timeout without knowing about
serdev implementation details, while also allowing the same timeout
argument to be used for both serdev_device_write() and
serdev_device_wait_until_sent().
Note that passing zero to the current helper makes no sense; just call
the asynchronous serdev_device_write_buf() directly instead.
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gnss/sirf.c')
0 files changed, 0 insertions, 0 deletions