Skip to contentSkip to conversation

drivers: bluetooth: bt3c_cs: Replace simple_strtol with kstrtol

PATCH In review Anchal Jain 2 participants 3 messages Sep 14, 2016 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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

---
 drivers/bluetooth/bt3c_cs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bluetooth/bt3c_cs.c +1 -1
index 8165ef2..6bdb940 100644
@@ -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
#1 lore raw
Quoted 10 lines · Anchal Jain

This patch remove the warning:

WARNING: simple_strtol is obsolete, use kstrtol instead

Generated by checkpatch.pl

---
 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

#2 lore raw

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_strtol is obsolete, use kstrtol instead

Generated by checkpatch.pl

---
 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