switch: make LED port_mask file write handler use kstrtoul() function
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 25 Feb 2016 13:31:23 +0000 (13:31 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 25 Feb 2016 13:31:23 +0000 (13:31 +0000)
commitafcd38fdaf932a3d549ee1275706fb2ff7694cd6
treee2d9feea3e22e49863947dfe34d8584e76eea075
parentf4c4f88abd98748b0cf30e346cc38c85de4cc25e
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48774 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/swconfig_leds.c