From 1d4285fa30f4426d624ad3ae5932babbfc9c50a5 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Tue, 21 Nov 2023 07:20:49 +0000 Subject: [PATCH] dce: Use kstrtobool instead of strtobool The function strtobool() is implemented inline with using kstrtobool(). The function strtobool() is removed from mainline Linux 6.7 with below change. ** commit 9bf2850c9170b52a6ab052085feced55effa78ef Author: Christophe JAILLET kstrtox: remove strtobool() ** Use the kstrtobool() now. Bug 4346767 Change-Id: I3b63684bcfc5621a3833b62061ea1cfdf44b3865 Signed-off-by: Laxman Dewangan Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3019996 Reviewed-by: Suresh Mangipudi GVS: Gerrit_Virtual_Submit --- drivers/platform/tegra/dce/dce-debug.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/platform/tegra/dce/dce-debug.c b/drivers/platform/tegra/dce/dce-debug.c index eaa75662..695c6e3d 100644 --- a/drivers/platform/tegra/dce/dce-debug.c +++ b/drivers/platform/tegra/dce/dce-debug.c @@ -131,7 +131,7 @@ static ssize_t dbg_dce_load_fw_write(struct file *file, if (copy_from_user(buf, user_buf, buf_size)) return -EFAULT; - if (strtobool(buf, &bv) == 0) { + if (kstrtobool(buf, &bv) == 0) { if (bv == true) { ret = dbg_dce_load_fw(d); if (ret) @@ -176,7 +176,7 @@ static ssize_t dbg_dce_config_ast_write(struct file *file, if (copy_from_user(buf, user_buf, buf_size)) return -EFAULT; - if (strtobool(buf, &bv) == 0) { + if (kstrtobool(buf, &bv) == 0) { if (bv == true) dbg_dce_config_ast(d); } @@ -219,7 +219,7 @@ static ssize_t dbg_dce_reset_dce_fops_write(struct file *file, if (copy_from_user(buf, user_buf, buf_size)) return -EFAULT; - if (strtobool(buf, &bv) == 0) { + if (kstrtobool(buf, &bv) == 0) { if (bv == true) { ret = dbg_dce_reset_dce(d); if (ret) @@ -455,7 +455,7 @@ static ssize_t dbg_dce_boot_dce_fops_write(struct file *file, if (copy_from_user(buf, user_buf, buf_size)) return -EFAULT; - if (strtobool(buf, &bv) == 0) { + if (kstrtobool(buf, &bv) == 0) { if (bv == true) { ret = dbg_dce_boot_dce(d); if (ret)