[linux-yocto] [PATCH 7/7] usb: typec: Use strtobool instead of kstrtobool for 4.4 kernel

Pranav Tipnis pranav.tipnis at intel.com
Wed Jun 29 14:50:23 PDT 2016

Upstream-Status: Inappropriate [other]
		 Type C support has been backported from kernel
		 4.7-rc which does not need this change.

Type C support has been backported from 4.7 kernel which has
kstrtobool function to convert string to bool. In 4.4 kernel,
we have strtobool instead. This patch changes the API used to
convert string to bool.

Signed-off-by: Pranav Tipnis <pranav.tipnis at intel.com>
 drivers/usb/typec/typec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/typec/typec.c b/drivers/usb/typec/typec.c
index bbfd6e5..341380a 100644
--- a/drivers/usb/typec/typec.c
+++ b/drivers/usb/typec/typec.c
@@ -625,7 +625,7 @@ typec_altmode_active_store(struct device *dev, struct device_attribute *attr,
 	bool activate;
 	int ret;
-	ret = kstrtobool(buf, &activate);
+	ret = strtobool(buf, &activate);
 	if (ret)
 		return ret;

More information about the linux-yocto mailing list