Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1311284rdf; Sat, 4 Nov 2023 15:27:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGqHOz7mOU7GLAk2CWeHlL7VZZy8kMHuahz/WUCEhdPb313fU7Fn4qkn0JVvp2dSkNwnfID X-Received: by 2002:a05:6870:1097:b0:1dd:4271:3a88 with SMTP id 23-20020a056870109700b001dd42713a88mr26202800oaq.58.1699136846642; Sat, 04 Nov 2023 15:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699136846; cv=none; d=google.com; s=arc-20160816; b=YQWJiDw9WBQ1Rkm/69natm2OP8XlTk/bJGLR09d+/iE0uvir5ITqypaOl4KDp51bNx ZcehfRz7VPSpbw73XG3ePGkIUA7OZiC49D5SLeeWJYBaqL7ohtuTyURzXGunKywhWcQZ INoyxI5oLj2STtFhGxBDStUdEhGdxPz/51mKMX8Vwus6qwS7QWMTMXiw3ri4AG+Cegpj njcObeUK/g76gHC1h7eZ8txfgXYZ9WawEp6glvPfQDyEcl/ncWh0kAUlco2qhrQtj2HW 5/ttVotdlktfs9KNUjQSbGfsFX4yxbO9NTj9v2/+h4e2XOQz1RAFpp0/4wnKV0q5uB0Y YXrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=iQchSbVVqTg0oG6VvjAb1juPI1kiDE4WO4qR/mLO6NM=; fh=NIkUmD20tf8Q1TwvVg7Fgl05XwBr7RSQ0CFcEyIRH4c=; b=pTvCTuJROmNDgQi84ZhD4/+SQMH8boTv+12K9cwNSGZGSrsv1U9sMH25FqM6oOc4lh LvgdJ7A0iOukO9IOKEkAKR9Zfe5z1k0YE5MBOD0wUNCwgMjWcjcyl8JkWPaqKs8os7n1 oOxuAYOdlbismxE/m3Nm/T7BErbn5ENzO7MTRvFs9eQzbgNAWl9jwBgdSPF+PSByzuHD +ho8NIXfqlKyxdOQ7M2RaJwsZAZb0ZB/ZeiKaEXo9XiI+4RrgtYj56a2nXd2Op7/Mrl1 SZydP3wBy9rGrN1R+rmv4OyqucUgY1VE9XFrNWK9a7nxVId3+AGlPL9+yxGYWOVS3Qeq SqCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="zQBqmF/j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id u130-20020a637988000000b0059cdf90b9b2si4285006pgc.685.2023.11.04.15.27.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 15:27:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="zQBqmF/j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B7CC880606D8; Sat, 4 Nov 2023 15:27:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229577AbjKDW0x (ORCPT + 99 others); Sat, 4 Nov 2023 18:26:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbjKDW0v (ORCPT ); Sat, 4 Nov 2023 18:26:51 -0400 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48BE9D6B for ; Sat, 4 Nov 2023 15:26:49 -0700 (PDT) Received: by mail-yb1-xb2b.google.com with SMTP id 3f1490d57ef6-d9ad90e1038so3303988276.3 for ; Sat, 04 Nov 2023 15:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699136808; x=1699741608; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=iQchSbVVqTg0oG6VvjAb1juPI1kiDE4WO4qR/mLO6NM=; b=zQBqmF/j6WwXpFmp974ZaFYzJxij866vFZjHeDo/8Qc1J4fVuldFrIQLcMyJ/1hNRT PSmsozfgXjN8t6iDBm+/gYQ4EIpyLSxthiOblqSlSF/sefJ8gOUSmggqUWiNWaFB6081 GGkuJ0Bk7Y+CQ6Zx3S4kRJ/PsLPIF/eodY9+8D61ndKSJWPvzRNo6Eof9+Ozt9f+wqLX I7e5tC1CdUvEHoKrLY+kKdfCkVGoJqYHLxXQz23FGvYL3c59Hdv/bEayvagI0exyOQjv FFA97jn0x9+fr2exmfuaq6GkcaEC1ls2dKZkoB5OnkfaJ1ebwmzNwbNPy6NRRZ80gcVh e/cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699136808; x=1699741608; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iQchSbVVqTg0oG6VvjAb1juPI1kiDE4WO4qR/mLO6NM=; b=YcGrW9HODl8IitHQ3vrAb0XxECXzBTssV4BHsRIAS5Lc+MMNpo/fJou8hKMSrXrHPX f29+ZTIWDRRq/lXNUxM4+8bHsTyruKvrFXMR922ZrRMC/TngIwxOxHWBc1Dr5d2lwz/I sDBmPxNaF1FmbMrc9eq7Le9d3u/sNpxUyPV4o/pGli+Li6QxAjVHkbCuJ/X43dAg99JN VM5UQbApHrrfx2ooKpo9CDbEH7mwgnvhByAkOwNq69KLfG3kpjsT6kYK5C9V4YsU4zq8 bH9h8s7kn+VU5IslYYDirFdLPgovlZV+bbBXAsEuvCiRLJz/kqr8dbC2TuZ6qJMQ/y8I movw== X-Gm-Message-State: AOJu0YyLQIYydCUFaOU+nIB1VpJaDMngz9sLDml+Fxhi2zti1378u7p5 cFmCHEOPGwqtHx82xDt5PtphzPDAJWMi+gbTNZTLlA== X-Received: by 2002:a05:6902:541:b0:d9a:b67f:94e3 with SMTP id z1-20020a056902054100b00d9ab67f94e3mr23245243ybs.52.1699136808547; Sat, 04 Nov 2023 15:26:48 -0700 (PDT) MIME-Version: 1.0 References: <20231103195310.948327-1-andriy.shevchenko@linux.intel.com> <20231103195310.948327-2-andriy.shevchenko@linux.intel.com> In-Reply-To: <20231103195310.948327-2-andriy.shevchenko@linux.intel.com> From: Linus Walleij Date: Sat, 4 Nov 2023 23:26:37 +0100 Message-ID: Subject: Re: [PATCH v1 2/4] leds: trigger: gpio: Convert to use kstrtox() To: Andy Shevchenko Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Pavel Machek , Lee Jones Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sat, 04 Nov 2023 15:27:01 -0700 (PDT) On Fri, Nov 3, 2023 at 9:03=E2=80=AFPM Andy Shevchenko wrote: > sscanf() is a heavy one and moreover requires additional boundary checks. > Convert driver to use kstrtou8() in gpio_trig_inverted_store(). > > Signed-off-by: Andy Shevchenko Reviewed-by: Linus Walleij Yours, Linus Walleij