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:
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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user