* [PATCH] bluetooth: replace strict_strtol() with kstrtol()
@ 2013-07-19 7:09 Jingoo Han
2013-07-19 13:42 ` Marcel Holtmann
2013-07-25 11:02 ` Gustavo Padovan
0 siblings, 2 replies; 3+ messages in thread
From: Jingoo Han @ 2013-07-19 7:09 UTC (permalink / raw)
To: 'Marcel Holtmann'
Cc: 'Gustavo Padovan', 'Johan Hedberg',
linux-bluetooth, Jingoo Han
The usage of strict_strtol() is not preferred, because
strict_strtol() is obsolete. Thus, kstrtol() should be
used.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/bluetooth/btmrvl_debugfs.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/bluetooth/btmrvl_debugfs.c b/drivers/bluetooth/btmrvl_debugfs.c
index db2c3c3..023d35e 100644
--- a/drivers/bluetooth/btmrvl_debugfs.c
+++ b/drivers/bluetooth/btmrvl_debugfs.c
@@ -43,7 +43,7 @@ static ssize_t btmrvl_hscfgcmd_write(struct file *file,
if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count)))
return -EFAULT;
- ret = strict_strtol(buf, 10, &result);
+ ret = kstrtol(buf, 10, &result);
if (ret)
return ret;
@@ -89,7 +89,7 @@ static ssize_t btmrvl_pscmd_write(struct file *file, const char __user *ubuf,
if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count)))
return -EFAULT;
- ret = strict_strtol(buf, 10, &result);
+ ret = kstrtol(buf, 10, &result);
if (ret)
return ret;
@@ -135,7 +135,7 @@ static ssize_t btmrvl_hscmd_write(struct file *file, const char __user *ubuf,
if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count)))
return -EFAULT;
- ret = strict_strtol(buf, 10, &result);
+ ret = kstrtol(buf, 10, &result);
if (ret)
return ret;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] bluetooth: replace strict_strtol() with kstrtol()
2013-07-19 7:09 [PATCH] bluetooth: replace strict_strtol() with kstrtol() Jingoo Han
@ 2013-07-19 13:42 ` Marcel Holtmann
2013-07-25 11:02 ` Gustavo Padovan
1 sibling, 0 replies; 3+ messages in thread
From: Marcel Holtmann @ 2013-07-19 13:42 UTC (permalink / raw)
To: Jingoo Han
Cc: 'Gustavo Padovan', 'Johan Hedberg', linux-bluetooth
Hi Jingoo,
> The usage of strict_strtol() is not preferred, because
> strict_strtol() is obsolete. Thus, kstrtol() should be
> used.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
> drivers/bluetooth/btmrvl_debugfs.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Regards
Marcel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] bluetooth: replace strict_strtol() with kstrtol()
2013-07-19 7:09 [PATCH] bluetooth: replace strict_strtol() with kstrtol() Jingoo Han
2013-07-19 13:42 ` Marcel Holtmann
@ 2013-07-25 11:02 ` Gustavo Padovan
1 sibling, 0 replies; 3+ messages in thread
From: Gustavo Padovan @ 2013-07-25 11:02 UTC (permalink / raw)
To: Jingoo Han
Cc: 'Marcel Holtmann', 'Johan Hedberg', linux-bluetooth
Hi Jingoo,
* Jingoo Han <jg1.han@samsung.com> [2013-07-19 16:09:38 +0900]:
> The usage of strict_strtol() is not preferred, because
> strict_strtol() is obsolete. Thus, kstrtol() should be
> used.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
> drivers/bluetooth/btmrvl_debugfs.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Patch has been applied to bluetooth-next. Thanks.
Gustavo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-07-25 11:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-19 7:09 [PATCH] bluetooth: replace strict_strtol() with kstrtol() Jingoo Han
2013-07-19 13:42 ` Marcel Holtmann
2013-07-25 11:02 ` Gustavo Padovan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.