drivers/video: Replace custom macro with isdigit()
Subsystems (2)
PATCH 4/4 drivers/video: Replace custom macro with isdigit()
Replace the custom CHAR_IS_NUM() macro with isdigit() from <linux/ctype.h>
Signed-off-by Tobias Klauser <[email protected]>
---
drivers/video/pm3fb.c | 3 ++- include/video/pm3fb.h | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/video/pm3fb.c +2 -1
@@ -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
@@ -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
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 withisdigit()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