Skip to contentSkip to conversation

drivers/video: Replace custom macro with isdigit()

PATCH NAK Tobias Klauser 2 participants 2 messages Sep 10, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/4 drivers/video: Replace custom macro with isdigit()

Replace the custom CHAR_IS_NUM() macro with isdigit() from <linux/ctype.h>

---

 drivers/video/pm3fb.c |    3 ++-
 include/video/pm3fb.h |    3 ---
 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/video/pm3fb.c +2 -1
diff -urpN -X dontdiff linux-2.6.13/drivers/video/pm3fb.c linux-2.6.13~macro_removal/drivers/video/pm3fb.c
@@ -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 *
 {
 	char *next;
 
-	if (!(CHAR_IS_NUM(options[0]))) {
+	if (!(isdigit(options[0]))) {
 		(*bn) = 0;
 		return (options);
 	}
include/video/pm3fb.h +0 -3
diff -urpN -X dontdiff linux-2.6.13/include/video/pm3fb.h linux-2.6.13~macro_removal/include/video/pm3fb.h
@@ -1142,9 +1142,6 @@
 /* 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 */

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors

#1 lore raw

Re: [KJ] [PATCH 4/4] drivers/video: Replace custom macro with

drivers/video/pm3fb.c

Quoted 5 lines · Tobias Klauser

Replace the custom CHAR_IS_NUM() macro with isdigit() from <linux/ctype.h>

drivers/video/pm3fb.c +0 -0

Marked as BROKEN for [checks bkbits] 25 months. I'd ask if anybody have plans to ressurect it RSN, then rm -f.

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors