diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2017-11-09 20:09:30 +0300 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2017-11-09 20:09:30 +0300 |
commit | c98769475575c8a585f5b3952f4b5f90266f699b (patch) | |
tree | 237dffb6a92e25b7f994dfaf64a37a554210fbfd /drivers/mfd/stm32-lptimer.c | |
parent | 1e7d4beba2f5c8d22c46e15d3b89559934356501 (diff) | |
download | linux-c98769475575c8a585f5b3952f4b5f90266f699b.tar.xz |
video: udlfb: Fix read EDID timeout
While usb_control_msg function expects timeout in miliseconds, a value
of HZ is used. Replace it with USB_CTRL_GET_TIMEOUT and also fix error
message which looks like:
udlfb: Read EDID byte 78 failed err ffffff92
as error is either negative errno or number of bytes transferred use %d
format specifier.
Returned EDID is in second byte, so return error when less than two bytes
are received.
Fixes: 18dffdf8913a ("staging: udlfb: enhance EDID and mode handling support")
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Cc: Bernie Thompson <bernie@plugable.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/mfd/stm32-lptimer.c')
0 files changed, 0 insertions, 0 deletions