staging: fbtft: Consider type of init sequence values in fbtft_init_display()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 16 Mar 2022 16:53:51 +0000 (18:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Mar 2022 12:42:48 +0000 (13:42 +0100)
commit362e54e48b783d6f6ef4b9793903d02d449508aa
treea4624da39180d6a48669baff4bea491ae5299c46
parent0e8cf2be5c0a324809389c81e5555e8ccb6ba123
staging: fbtft: Consider type of init sequence values in fbtft_init_display()

In the fbtft_init_display() the init sequence is printed for
the debug purposes. Unfortunately the current code doesn't take
into account that values in the buffer are of the s16 type.

Consider that and replace the printing code with fbtft_par_dbg_hex()
call.

Fixes: b888897014a9 ("staging/fbtft: Remove all strcpy() uses")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220316165351.58107-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fbtft-core.c