ACPI / PNP: Replace faulty is_hex_digit() by isxdigit()
authorArjun Sreedharan <arjun024@gmail.com>
Thu, 31 Jul 2014 09:04:49 +0000 (14:34 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 31 Jul 2014 21:07:48 +0000 (23:07 +0200)
commita5f95da9fb2a0b228b3bab19d35850af3e9a74b2
tree63bdcdd801197edef580d755626d929d021bc872
parentfeb41bb1ca6b969985cd5e486a3f2deac9f089fa
ACPI / PNP: Replace faulty is_hex_digit() by isxdigit()

0 is ascii for NULL. Hex digit matching should be from '0'.
Faulty version returns true for #,$,%,& etc.

Signed-off-by: Arjun Sreedharan <arjun024@gmail.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_pnp.c