Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2326896rwb; Sun, 15 Jan 2023 13:18:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXvBzigTmMRqrfjduQ0DNrehRt2n0oYQXS/UE+0iM22YvOLXyIiVDGcekO95DRyHPmhPGoKw X-Received: by 2002:a17:903:2289:b0:194:6109:8d40 with SMTP id b9-20020a170903228900b0019461098d40mr20778746plh.57.1673817508313; Sun, 15 Jan 2023 13:18:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673817508; cv=none; d=google.com; s=arc-20160816; b=McmvhfHLBqQQw/VBVdmSMo0tB4J5y1PqRu8jj9hqf4Y69VbsFxfyW9aoOpVUChsZqb Al+WTtklAKdX8hJjeaZ04Kvza4i3ykh25J6erh+kExnnA8bmT50IuiGtRIWSXLI7oYSP ModsgmnbdwbG+GCdIAdSg4n8s37ErDi+xnQs+urtPrxV0LYCmJX5Ucf1fJAC3WdDTNcP eVAYJ2tSLHfByEEi+MhZc444cB18KYu4m8bLpgC6f2nlzqPe99Twetlk/SgRmD5YM6XQ 3J7D0tohwXhBwcroXgIwwiBBR1dv8mHc7hZTyJKdoNyDcFx84OgicaC7VHiBPQ3Te7t8 7JUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=74RhcBsAx+kub+kDVOOskr2aPEQ6kRGqUZjd5zvt5v4=; b=HkpvAAxn2Gcgd6ruLWiZZNQ+aqUWLSWSgsaX7IR2umYDF9qzaWjHAHitF1ToX6+PDi bGNbhERFdmbkF05athEIwUzUbsYDVRhdvVehgi+PnAiBm5rEmUr3YSRrT3GUSNekSdOb 2gCLJ2iONKsQ1zIjeVdq9grHDO4h1rj16BwdUS2RU5WiE+CoD6RtG2HIfFurD3HbtUSy jqImXPuR9hAxXWboip9oh3p7CZrKJBHXDfOMmu2ZKXVsdie6bWgKbx7Qm7bVCfqmRXb4 aH/RXXmGcNdVbXoUGsKYF2rT2jQCvuAnWTwzZHsHPpae1ajq3eTTUNeHBeFYSbbM1IVr hcaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=mQZiX84Y; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020a170903028400b0018725be1285si25944128plr.558.2023.01.15.13.18.21; Sun, 15 Jan 2023 13:18:28 -0800 (PST) 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; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=mQZiX84Y; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231608AbjAOU53 (ORCPT + 54 others); Sun, 15 Jan 2023 15:57:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231329AbjAOU50 (ORCPT ); Sun, 15 Jan 2023 15:57:26 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABB5A13535; Sun, 15 Jan 2023 12:57:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1673816240; bh=iCHzrI3/Aj5kWtzk9CytDtglCVQ11xjtngzlljo+NhM=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=mQZiX84YBGlJE6qGlxkZJ6wHhQNjVe7JYb5V3YjMzB9jfFAuHlo3AqLX3tXTCkc6y spmplv3CjcqAtJgscvGCe3OoR4W3hq4sKMWwxNnJUr9+JaCre0XepOHCOXED/18GbD 29W3suX2iteLzbQrTM5NE/dnJzvlbur72AQfdvxeR1AKSDtCJbJwfCp+8ITxpvHC9T iMFHNtPiUJJ/cikqV3u6BvBgQswcqzx4IhLXajanGffjt9K55SZyVOy0DvxX7L+4cQ ggGHQ1mOSnj0jLjc9txUiob7JWmOc4ys0gTmhVoj5RC2zx7wapcwrFYLRmLa2M8QqV HFQYV4RozFApw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.60] ([92.116.161.25]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MLR1f-1p0K2N1GXD-00IVuK; Sun, 15 Jan 2023 21:57:20 +0100 Message-ID: Date: Sun, 15 Jan 2023 21:57:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v2] video: fbdev: omapfb: Use kstrtobool() instead of strtobool() Content-Language: en-US To: Christophe JAILLET Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org References: From: Helge Deller In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:9gbLCh5+D4eAvUf/NKqhI7QbjcQ6WT5LZS7UN7n4wftXAbpNmmp /S7NFKRzt+2Eg/A9Do4y/aY2CAwsXHF5+M+4k9UD3RJAJOvYKBictBl2sX13OG/lpg0FIyn L5so/Ur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0cV9sy1nmnkr4YqeR3RjnLyn/ J1JaI+bkPT8y2jytxSz6N3BJpQ0= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,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 On 1/14/23 09:54, Christophe JAILLET wrote: > 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 t= o > the other function name. > > While at it, include the corresponding header file () > > Signed-off-by: Christophe JAILLET applied. Thanks! Helge > --- > This patch was already sent as a part of a serie ([1]) that axed all usa= ges > of strtobool(). > Most of the patches have been merged in -next. > > I synch'ed with latest -next and re-send the remaining ones as individua= l > patches. > > Changes in v2: > - No change > > [1]: https://lore.kernel.org/all/cover.1667336095.git.christophe.jaillet= @wanadoo.fr/ > --- > drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c | 7 ++++--- > drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c | 7 ++++--- > drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c | 3 ++- > drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c | 3 ++- > 4 files changed, 12 insertions(+), 8 deletions(-) > > diff --git a/drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c b/driv= ers/video/fbdev/omap2/omapfb/dss/display-sysfs.c > index bc5a44c2a144..ae937854403b 100644 > --- a/drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c > +++ b/drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c > @@ -10,6 +10,7 @@ > #define DSS_SUBSYS_NAME "DISPLAY" > > #include > +#include > #include > #include > #include > @@ -36,7 +37,7 @@ static ssize_t display_enabled_store(struct omap_dss_d= evice *dssdev, > int r; > bool enable; > > - r =3D strtobool(buf, &enable); > + r =3D kstrtobool(buf, &enable); > if (r) > return r; > > @@ -73,7 +74,7 @@ static ssize_t display_tear_store(struct omap_dss_devi= ce *dssdev, > if (!dssdev->driver->enable_te || !dssdev->driver->get_te) > return -ENOENT; > > - r =3D strtobool(buf, &te); > + r =3D kstrtobool(buf, &te); > if (r) > return r; > > @@ -183,7 +184,7 @@ static ssize_t display_mirror_store(struct omap_dss_= device *dssdev, > if (!dssdev->driver->set_mirror || !dssdev->driver->get_mirror) > return -ENOENT; > > - r =3D strtobool(buf, &mirror); > + r =3D kstrtobool(buf, &mirror); > if (r) > return r; > > diff --git a/drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c b/driv= ers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c > index ba21c4a2633d..1b644be5fe2e 100644 > --- a/drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c > +++ b/drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c > @@ -10,6 +10,7 @@ > #define DSS_SUBSYS_NAME "MANAGER" > > #include > +#include > #include > #include > #include > @@ -246,7 +247,7 @@ static ssize_t manager_trans_key_enabled_store(struc= t omap_overlay_manager *mgr, > bool enable; > int r; > > - r =3D strtobool(buf, &enable); > + r =3D kstrtobool(buf, &enable); > if (r) > return r; > > @@ -290,7 +291,7 @@ static ssize_t manager_alpha_blending_enabled_store( > if(!dss_has_feature(FEAT_ALPHA_FIXED_ZORDER)) > return -ENODEV; > > - r =3D strtobool(buf, &enable); > + r =3D kstrtobool(buf, &enable); > if (r) > return r; > > @@ -329,7 +330,7 @@ static ssize_t manager_cpr_enable_store(struct omap_= overlay_manager *mgr, > if (!dss_has_feature(FEAT_CPR)) > return -ENODEV; > > - r =3D strtobool(buf, &enable); > + r =3D kstrtobool(buf, &enable); > if (r) > return r; > > diff --git a/drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c b/driv= ers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c > index 601c0beb6de9..1da4fb1c77b4 100644 > --- a/drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c > +++ b/drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c > @@ -13,6 +13,7 @@ > #include > #include > #include > +#include > #include > > #include