staging: fbtft: fb_st7789v: make HSD20_IPS numeric and not a string
authorColin Ian King <colin.king@canonical.com>
Thu, 21 May 2020 13:50:38 +0000 (14:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 May 2020 08:48:32 +0000 (10:48 +0200)
commit20edb44179e94c918eb9d5bfbe98d395d3cbe4d7
treec061a29a3c8e0f7a2abce4809ee8ee15c4942d52
parentbf04362fc3e41d0887090ce174a8373653811a7c
staging: fbtft: fb_st7789v: make HSD20_IPS numeric and not a string

Currently HSD20_IPS is defined as "true" and will always result in a
non-zero result even if it is defined as "false" because it is an array
and that will never be zero. Fix this by defining it as an integer 1
rather than a literal string.

Addessses-Coverity: ("Array compared against 0")
Fixes: f03c9b788472 ("staging: fbtft: fb_st7789v: Initialize the Display")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200521135038.345878-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fb_st7789v.c