diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-07-27 09:23:18 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-07-27 09:23:18 +0000 |
commit | 72a6c7669e7724e53da5d82272c205f014d7b0f1 (patch) | |
tree | fdbce23ccf144c0572aba6ffa7a39415945abece /target/linux/generic/patches-3.10/863-gpiommc.patch | |
parent | 3ada8d619de9ab069e18279522ce10b3413701cb (diff) |
strict_strtoul is obsolete, use kstrtoul instead
based on http://patchwork.openwrt.org/patch/3827/
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37562 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-3.10/863-gpiommc.patch')
-rw-r--r-- | target/linux/generic/patches-3.10/863-gpiommc.patch | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/target/linux/generic/patches-3.10/863-gpiommc.patch b/target/linux/generic/patches-3.10/863-gpiommc.patch index a9101f473b..00f7c8d2ec 100644 --- a/target/linux/generic/patches-3.10/863-gpiommc.patch +++ b/target/linux/generic/patches-3.10/863-gpiommc.patch @@ -357,7 +357,7 @@ + unsigned long data; + + if (attr == &gpiommc_attr_register) { -+ err = strict_strtoul(page, 10, &data); ++ err = kstrtoul(page, 10, &data); + if (err) + goto out; + err = -EINVAL; @@ -378,7 +378,7 @@ + } + + if (attr == &gpiommc_attr_DI) { -+ err = strict_strtoul(page, 10, &data); ++ err = kstrtoul(page, 10, &data); + if (err) + goto out; + err = -EINVAL; @@ -389,7 +389,7 @@ + goto out; + } + if (attr == &gpiommc_attr_DO) { -+ err = strict_strtoul(page, 10, &data); ++ err = kstrtoul(page, 10, &data); + if (err) + goto out; + err = -EINVAL; @@ -400,7 +400,7 @@ + goto out; + } + if (attr == &gpiommc_attr_CLK) { -+ err = strict_strtoul(page, 10, &data); ++ err = kstrtoul(page, 10, &data); + if (err) + goto out; + err = -EINVAL; @@ -411,7 +411,7 @@ + goto out; + } + if (attr == &gpiommc_attr_CS) { -+ err = strict_strtoul(page, 10, &data); ++ err = kstrtoul(page, 10, &data); + if (err) + goto out; + err = -EINVAL; @@ -422,7 +422,7 @@ + goto out; + } + if (attr == &gpiommc_attr_CS_activelow) { -+ err = strict_strtoul(page, 10, &data); ++ err = kstrtoul(page, 10, &data); + if (err) + goto out; + err = -EINVAL; @@ -433,7 +433,7 @@ + goto out; + } + if (attr == &gpiommc_attr_spimode) { -+ err = strict_strtoul(page, 10, &data); ++ err = kstrtoul(page, 10, &data); + if (err) + goto out; + err = -EINVAL; @@ -457,7 +457,7 @@ + goto out; + } + if (attr == &gpiommc_attr_spidelay) { -+ err = strict_strtoul(page, 10, &data); ++ err = kstrtoul(page, 10, &data); + if (err) + goto out; + err = -EINVAL; @@ -468,7 +468,7 @@ + goto out; + } + if (attr == &gpiommc_attr_max_bus_speed) { -+ err = strict_strtoul(page, 10, &data); ++ err = kstrtoul(page, 10, &data); + if (err) + goto out; + err = -EINVAL; |