diff options
| author | Ladislav Michl <ladis@linux-mips.org> | 2017-11-09 18:09:30 +0100 |
|---|---|---|
| committer | Ben Hutchings <ben@decadent.org.uk> | 2018-02-13 18:42:20 +0000 |
| commit | c9e38ae0fe0779c91db7f16895e43e1922c3eaf7 (patch) | |
| tree | e97c9744cb1424a8692012c624e0afc8ec4b42d0 /include/linux/blkdev.h | |
| parent | 49b31d891e6bde3e95856a05a74deb55a7ab95e2 (diff) | |
video: udlfb: Fix read EDID timeout
commit c98769475575c8a585f5b3952f4b5f90266f699b upstream.
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux/blkdev.h')
0 files changed, 0 insertions, 0 deletions
