Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3000826rwi; Tue, 1 Nov 2022 14:38:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM63DwRNVXI7AuNBBeqmk9/TY16jEi1tjZEPlHCxH+jkeqxcxVjJfrXnKYQ3aFJ1VSlmuCVw X-Received: by 2002:a05:6402:254f:b0:45d:3044:d679 with SMTP id l15-20020a056402254f00b0045d3044d679mr21871185edb.137.1667338701969; Tue, 01 Nov 2022 14:38:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667338701; cv=none; d=google.com; s=arc-20160816; b=YR3QLEQggvV0FvyJjJ8CRT++G+TctGw3CEXXuUBMb7dQyUj64oAJR+yKXrsySCguOm lrUvvKQHZvR7uYItoRDlijSuQfn058kCm1M5rJ07M2QwDzVX1Dsgu0bfEf6wcyAAkM/a BRB8mJuN32HCnHTqNQ3eMUPRe4BxCV8/q9lyTSU5FHLihNrSsUStU4iyJXHHsDnQFZn6 /B4iGSx+Tx2GEDNYuPlNq+IvSgXi98I6zH1wkQ7wbSPIp3RvjQycI5yGEMmcuew9nvty TsgMtLCKb9T2e+jvPVW6TXXQyjYMZ2zwcf6kvAAgJf3xV59BdFMtNC0lliC1njSrXl7g vPIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=cKPgq5XPQ0c1r0QSZwUMIYc6znIdIn1ZQ5IvQZC+n2Y=; b=sWSH5ZXwWSR8MxFQsNl0+Gf3xHxSRsMw1zgJkjqWIbZCkguC+C/BbzEQaFf39l98TO NKdZXIqURkkjqrXcE4YARqy8i1FGM4LsdjXqoAavAhSvpvewZ+On+VhYveSLzhl0fDWd lcj9o8MTMR1cRAqBusB2GO90P4hDqFDeNdnFpAsXYCUsTshahi9B3weJLHp9+Zn9ey7U C5VRO0x98mUBN16x7EnUjiczw7Cl9ttLVvSjcrB/RWJuWKjGdO84M8Banfz30zuxMDJn 8wzBniYL6gupRGa0ZvDv/ICZAQ7se4oK3oGOV0zqvZpAD2lo9Do75dLC/0dMbw9HDXbc 5LKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn3-20020a1709070d0300b0078debc9d30esi14808894ejc.29.2022.11.01.14.37.33; Tue, 01 Nov 2022 14:38:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230426AbiKAVPz (ORCPT + 96 others); Tue, 1 Nov 2022 17:15:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230272AbiKAVPb (ORCPT ); Tue, 1 Nov 2022 17:15:31 -0400 Received: from smtp.smtpout.orange.fr (smtp-16.smtpout.orange.fr [80.12.242.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C20541EEFA for ; Tue, 1 Nov 2022 14:15:16 -0700 (PDT) Received: from pop-os.home ([86.243.100.34]) by smtp.orange.fr with ESMTPA id pyanoKD2rsfCIpybKoWfJO; Tue, 01 Nov 2022 22:15:15 +0100 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 01 Nov 2022 22:15:15 +0100 X-ME-IP: 86.243.100.34 From: Christophe JAILLET To: Johan Hovold , Alex Elder , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , greybus-dev@lists.linaro.org Subject: [PATCH 11/30] greybus: svc: Use kstrtobool() instead of strtobool() Date: Tue, 1 Nov 2022 22:13:59 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org strtobool() is the same as kstrtobool(). However, the latter is more used within the kernel. In order to remove strtobool() and slightly simplify kstrtox.h, switch to the other function name. While at it, include the corresponding header file () Signed-off-by: Christophe JAILLET --- This patch is part of a serie that axes all usages of strtobool(). Each patch can be applied independently from the other ones. The last patch of the serie removes the definition of strtobool(). You may not be in copy of the cover letter. So, if needed, it is available at [1]. [1]: https://lore.kernel.org/all/cover.1667336095.git.christophe.jaillet@wanadoo.fr/ --- drivers/greybus/svc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/greybus/svc.c b/drivers/greybus/svc.c index 56d2b44d6fef..16cced80867a 100644 --- a/drivers/greybus/svc.c +++ b/drivers/greybus/svc.c @@ -7,6 +7,7 @@ */ #include +#include #include #include @@ -83,7 +84,7 @@ static ssize_t watchdog_store(struct device *dev, int retval; bool user_request; - retval = strtobool(buf, &user_request); + retval = kstrtobool(buf, &user_request); if (retval) return retval; -- 2.34.1