summaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-09-05 19:13:44 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-12 18:24:53 -0700
commitfb7014df159bb8524341a0fdb8d467f6827b0770 (patch)
treecc2d91397cef88dba2efef8390a9d990297cc43a /drivers/staging/fbtft
parenteb6a2dbf32a4ea2fa94f742f6494f661a807fb45 (diff)
downloadtalos-op-linux-fb7014df159bb8524341a0fdb8d467f6827b0770.tar.gz
talos-op-linux-fb7014df159bb8524341a0fdb8d467f6827b0770.zip
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>
Diffstat (limited to 'drivers/staging/fbtft')
-rw-r--r--drivers/staging/fbtft/fbtft_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fbtft_device.c b/drivers/staging/fbtft/fbtft_device.c
index 3856c8873f63..80ab918999a6 100644
--- a/drivers/staging/fbtft/fbtft_device.c
+++ b/drivers/staging/fbtft/fbtft_device.c
@@ -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++)
OpenPOWER on IntegriCloud