mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] 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]> Acked-by: "Antonino A. Daplas" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
6f673d83ca
commit
82006d0841
2 changed files with 2 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue