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.tip...@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; -- 1.9.1 -- _______________________________________________ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto