]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: fbtft: fb_tinylcd: replace udelay() with fsleep()
authorTomasz Unger <tomasz.unger@yahoo.pl>
Thu, 19 Feb 2026 14:29:42 +0000 (15:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 14:43:56 +0000 (15:43 +0100)
commit6edec96a66cac874e39e19c7f69ea042f90d7155
tree5c5781584f835d79f52637e2a599cc656b27a880
parentb8077a5becb0a927337a07e6cde1da09a10cb5da
staging: fbtft: fb_tinylcd: replace udelay() with fsleep()

fsleep() is the preferred modern API for flexible sleeping as it
automatically selects the best sleep mechanism based on the duration.
Replace udelay() with fsleep() to improve power efficiency.

init_display() is a driver initialization callback which runs in
sleeping context, so fsleep() is safe to use here.

Signed-off-by: Tomasz Unger <tomasz.unger@yahoo.pl>
Acked-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Link: https://patch.msgid.link/20260219142942.74087-1-tomasz.unger@yahoo.pl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fb_tinylcd.c