drivers: bluetooth: bt3c_cs: Replace simple_strtol with kstrtol
PATCH 1/1 drivers: bluetooth: bt3c_cs: Replace simple_strtol with kstrtol
This patch remove the warning:
WARNING: simple_strtol is obsolete, use kstrtol instead
Generated by checkpatch.pl
Signed-off-by Anchal Jain <[email protected]>
--- drivers/bluetooth/bt3c_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bluetooth/bt3c_cs.c +1 -1
@@ -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 ) {
Signature · 1 line
1.9.1
Quoted 10 lines · Anchal Jain
This patch remove the warning:
WARNING:
simple_strtolis obsolete, use kstrtol insteadGenerated by checkpatch.pl
Signed-off-by Anchal Jain <[email protected]>--- 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
Thank you,
From next time, I will keep this thing in my mind.
Quoted 18 lines · Greg KH
Quoted 10 lines · Anchal Jain
This patch remove the warning:
WARNING:
simple_strtolis obsolete, use kstrtol insteadGenerated by checkpatch.pl
Signed-off-by Anchal Jain <[email protected]>--- 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