mirror-linux/drivers/gpu/drm/tiny
Jinjie Ruan cbf226355e drm: gm12u320: Fix the timeout usage for usb_bulk_msg()
[ Upstream commit 7583028d35 ]

The timeout arg of usb_bulk_msg() is ms already, which has been converted
to jiffies by msecs_to_jiffies() in usb_start_wait_urb(). So fix the usage
by removing the redundant msecs_to_jiffies() in the macros.

And as Hans suggested, also remove msecs_to_jiffies() for the IDLE_TIMEOUT
macro to make it consistent here and so change IDLE_TIMEOUT to
msecs_to_jiffies(IDLE_TIMEOUT) where it is used.

Fixes: e4f86e4371 ("drm: Add Grain Media GM12U320 driver v2")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Suggested-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230904021421.1663892-1-ruanjinjie@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-23 11:11:08 +02:00
..
Kconfig
Makefile
arcpgu.c
bochs.c
cirrus.c
gm12u320.c drm: gm12u320: Fix the timeout usage for usb_bulk_msg() 2023-09-23 11:11:08 +02:00
hx8357d.c
ili9163.c
ili9225.c
ili9341.c
ili9486.c
mi0283qt.c
panel-mipi-dbi.c
repaper.c drm/repaper: Reduce temporary buffer size in repaper_fb_dirty() 2023-09-13 09:42:42 +02:00
simpledrm.c
st7586.c
st7735r.c