serial: 8250_dw: Hide a cast in dw8250_serial_inq()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 12 Apr 2024 17:39:37 +0000 (20:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2024 11:14:09 +0000 (13:14 +0200)
commitc205edcd86dac01c205e4eadf6d0d95965e7a566
tree03adc17e20cd26484d71ce9fe5b92b21423421c8
parent6a533ed7350af50322a7e478a6557f1368222ea3
serial: 8250_dw: Hide a cast in dw8250_serial_inq()

dw8250_serial_inq() uses unsigned int variable to store 8-bit value.
Due to that it needs a cast which can be avoided by switching to use
u8 instead of unsigned int.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240412173937.187442-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c