switch: make LED port_mask file write handler use kstrtoul() function
authorFelix Fietkau <nbd@openwrt.org>
Thu, 25 Feb 2016 13:31:23 +0000 (13:31 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 25 Feb 2016 13:31:23 +0000 (13:31 +0000)
commit061b0bb7e1a53b1f704e4397d4d940b2d81efc4f
treee2d9feea3e22e49863947dfe34d8584e76eea075
parent6bf5dad5cd8fbbf3a715eb96c18deed6865de9b0
switch: make LED port_mask file write handler use kstrtoul() function

This patch changes swconfig_trig_port_mask_store() handler to utilize
kstrtoul() function instead of call to obsolete simple_strtoul(). Thanks
to this change, new handler takes less memory and makes port_mask special
file accept not only hexadecimal, but also decimal and octal numbers.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
SVN-Revision: 48774
target/linux/generic/files/drivers/net/phy/swconfig_leds.c