* [PATCH] drivers: bluetooth: bt3c_cs: Replace simple_strtol with kstrtol
@ 2016-09-14 15:06 Anchal Jain
2016-09-14 17:03 ` [Outreachy kernel] " Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Anchal Jain @ 2016-09-14 15:06 UTC (permalink / raw)
To: gustavo; +Cc: outreachy-kernel, johan.hedberg
This patch remove the warning:
WARNING: simple_strtol is obsolete, use kstrtol instead
Generated by checkpatch.pl
Signed-off-by: Anchal Jain <anchalj109@gmail.com>
---
drivers/bluetooth/bt3c_cs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c
index 8165ef2..6bdb940 100644
--- a/drivers/bluetooth/bt3c_cs.c
+++ b/drivers/bluetooth/bt3c_cs.c
@@ -490,7 +490,7 @@ static int bt3c_load_firmware(struct bt3c_info *info,
memset(b, 0, sizeof(b));
for (tmp = 0, i = 0; i < size; i++) {
memcpy(b, ptr + (i * 2) + 2, 2);
- tmp += simple_strtol(b, NULL, 16);
+ tmp += kstrtol(b, NULL, 16);
}
if (((tmp + fcs) & 0xff) != 0xff) {
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Outreachy kernel] [PATCH] drivers: bluetooth: bt3c_cs: Replace simple_strtol with kstrtol
2016-09-14 15:06 [PATCH] drivers: bluetooth: bt3c_cs: Replace simple_strtol with kstrtol Anchal Jain
@ 2016-09-14 17:03 ` Greg KH
2016-09-14 17:47 ` Anchal Jain
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2016-09-14 17:03 UTC (permalink / raw)
To: Anchal Jain; +Cc: gustavo, outreachy-kernel, johan.hedberg
On Wed, Sep 14, 2016 at 08:36:39PM +0530, Anchal Jain wrote:
> This patch remove the warning:
>
> WARNING: simple_strtol is obsolete, use kstrtol instead
>
> Generated by checkpatch.pl
>
> Signed-off-by: Anchal Jain <anchalj109@gmail.com>
> ---
> drivers/bluetooth/bt3c_cs.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
You must stay in drivers/staging/ for the outreachy application process.
sorry,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Outreachy kernel] [PATCH] drivers: bluetooth: bt3c_cs: Replace simple_strtol with kstrtol
2016-09-14 17:03 ` [Outreachy kernel] " Greg KH
@ 2016-09-14 17:47 ` Anchal Jain
0 siblings, 0 replies; 3+ messages in thread
From: Anchal Jain @ 2016-09-14 17:47 UTC (permalink / raw)
To: Greg KH; +Cc: gustavo, outreachy-kernel, Johan Hedberg
[-- Attachment #1: Type: text/plain, Size: 600 bytes --]
Thank you,
From next time, I will keep this thing in my mind.
On Wed, Sep 14, 2016 at 10:33 PM, Greg KH <gregkh@linuxfoundation.org>
wrote:
> On Wed, Sep 14, 2016 at 08:36:39PM +0530, Anchal Jain wrote:
> > This patch remove the warning:
> >
> > WARNING: simple_strtol is obsolete, use kstrtol instead
> >
> > Generated by checkpatch.pl
> >
> > Signed-off-by: Anchal Jain <anchalj109@gmail.com>
> > ---
> > drivers/bluetooth/bt3c_cs.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
>
> You must stay in drivers/staging/ for the outreachy application process.
>
> sorry,
>
> greg k-h
>
[-- Attachment #2: Type: text/html, Size: 1133 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-09-14 17:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-14 15:06 [PATCH] drivers: bluetooth: bt3c_cs: Replace simple_strtol with kstrtol Anchal Jain
2016-09-14 17:03 ` [Outreachy kernel] " Greg KH
2016-09-14 17:47 ` Anchal Jain
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.