mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
staging: fbtft: do not use magic numbers
Using magic numbers are not good coding practise. Use FBTFT_GPIO_NAME_SIZE as defined in the header files. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
eb6a2dbf32
commit
fb7014df15
@@ -1375,7 +1375,7 @@ static int __init fbtft_device_init(void)
|
||||
}
|
||||
|
||||
/* name=list lists all supported displays */
|
||||
if (strncmp(name, "list", 32) == 0) {
|
||||
if (strncmp(name, "list", FBTFT_GPIO_NAME_SIZE) == 0) {
|
||||
pr_info(DRVNAME": Supported displays:\n");
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(displays); i++)
|
||||
|
||||
Reference in New Issue
Block a user