]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PATCH] drivers/video: Replace custom macro with isdigit()
authorTobias Klauser <tklauser@nuerscht.ch>
Tue, 13 Sep 2005 08:25:49 +0000 (01:25 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 13 Sep 2005 15:22:33 +0000 (08:22 -0700)
Replace the custom CHAR_IS_NUM() macro with isdigit() from <linux/ctype.h>

Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch>
Acked-by: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/pm3fb.c
include/video/pm3fb.h

index e0dad948467b32cc921f742f5abbefb5d28b4674..2e11b601c488cb63f4e0d815f258d03cda74bf12 100644 (file)
@@ -67,6 +67,7 @@
 #include <linux/init.h>
 #include <linux/pci.h>
 #include <linux/ioport.h>
+#include <linux/ctype.h>
 
 #include <video/fbcon.h>
 #include <video/fbcon-mfb.h>
@@ -2594,7 +2595,7 @@ static char *pm3fb_boardnum_setup(char *options, unsigned long *bn)
 {
        char *next;
 
-       if (!(CHAR_IS_NUM(options[0]))) {
+       if (!(isdigit(options[0]))) {
                (*bn) = 0;
                return (options);
        }
index 8d3cef5d87a20264af07948e6c1df10d2f04f8bc..6f4ea808cf74b4ae9e2e47f19da0231e5b07a51a 100644 (file)
 /* do we want accelerated console  */
 #define PM3FB_USE_ACCEL 1
 
-/* useful ? */
-#define CHAR_IS_NUM(a)  ((((a) >= '0') && ((a) <= '9')) ? 1 : 0)
-
 /* for driver debugging ONLY */
 /* 0 = assert only, 1 = error, 2 = info, 3+ = verbose */
 /* define PM3FB_MASTER_DEBUG 1 */