Commit 487c151a authored by Jingoo Han's avatar Jingoo Han Committed by Greg Kroah-Hartman

USB: iuu_phoenix: replace strict_strtoul() with kstrtoul()

The usage of strict_strtoul() is not preferred, because
strict_strtoul() is obsolete. Thus, kstrtoul() should be
used.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f2ec522e
...@@ -1164,7 +1164,7 @@ static ssize_t store_vcc_mode(struct device *dev, ...@@ -1164,7 +1164,7 @@ static ssize_t store_vcc_mode(struct device *dev,
struct iuu_private *priv = usb_get_serial_port_data(port); struct iuu_private *priv = usb_get_serial_port_data(port);
unsigned long v; unsigned long v;
if (strict_strtoul(buf, 10, &v)) { if (kstrtoul(buf, 10, &v)) {
dev_err(dev, "%s - vcc_mode: %s is not a unsigned long\n", dev_err(dev, "%s - vcc_mode: %s is not a unsigned long\n",
__func__, buf); __func__, buf);
goto fail_store_vcc_mode; goto fail_store_vcc_mode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment