Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2050286lqb; Mon, 27 May 2024 06:26:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3u5tGJ7GCnL930K20QIAEQi62iRR11iZbHoRmu2cUPkG0z9cU0t7DEW8d1FkNriXiBwoqSWzZ0HGYM8L8M240MetDkI8sEU22+wDAoA== X-Google-Smtp-Source: AGHT+IGdIfiV0WbKJ23ds4IYXDzXz2krEW1ptd6Ekts//Qo5JuXad5pDzmI9FvUOpnj/T58RM2Fd X-Received: by 2002:a05:6512:2813:b0:523:892c:9e0 with SMTP id 2adb3069b0e04-5296600670bmr9589263e87.41.1716816416470; Mon, 27 May 2024 06:26:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716816416; cv=pass; d=google.com; s=arc-20160816; b=JDgRSA/0fWh2mxW2GaPT0PnaMPRg3t9mwIyKr1s/otwcqa8wqF0ToBCnERbOhw1BJh OWnbmvJlvMB33ALMi/8PVs6py9ZiIUcsCOWCxq2Xi9d/kp3zoLV0EsKipn8ETMdqEIpm FEn1MFrKZDc7hOazrXvsM7MecCVlf5k06h6ksBskv6Im+eQtEFlu+uvuDK7sg3rJ0tsZ 2GV6mgqVHqf0fT6K3GlTsUAeGdD2ZKG8iGp3/yK4YwrNYLbr/ZwzXPqw8Pz+41shh6Gd ULdJiEroWfjWbYnppi/NDW3app6OO2ke7AZlYN7mWbCSh5brBcTQxrUnohz5QwiIbv1a vTfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=GflM09Ty5ySMzHW0VQRjEjWl/D2bFn8865uwf7NdYgk=; fh=GSclXyZWeqYXQCew4HKDljiq9EnR2vIvh0eQBlwi8jE=; b=l2g0ME0rFHHDPHu9/6M4Iz1uTJ2p2TmqrpKWCSnB+o+8NgnkPuaOTrhkjfcij4gLi8 YLOEpDKvRzaiFAj0DsxuH32A1ytWWVd5yD8A+J2tFhW5Od4trvtMK5MK4lZK327dJJE+ HCGJAVvuIx0XxBPf/uqx1W7o8Ss1kWs6IGs9BcVkhtAuamnd5aA4nuaw3FfZTDTsGp96 AgKE/rW6cgXz5tUGECiCphkiaCuHk3kzx3odrNjuMic84+Zb++tbaT+ZtbXZ+FgTdlpi oEYn1L84HkWNJHcbSBDl/MrHyFTr0YPb75POvpK/UvA5ZoHGKPZZgl0KNQ5gRMm806ny vTJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y7JKitKF; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190690-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190690-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cd986c7si387777266b.893.2024.05.27.06.26.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 06:26:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190690-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y7JKitKF; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190690-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190690-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 359711F24924 for ; Mon, 27 May 2024 13:26:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5450515EFA0; Mon, 27 May 2024 13:26:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="y7JKitKF" Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0EFFE15ECE7 for ; Mon, 27 May 2024 13:26:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716816408; cv=none; b=XUxPYU7gE0dQSBxkmxr0soen4zAs9RPR8ehsXi2klxaheIP23AGDQ3Mpd32Jb3xsggQPz7nOJHnYyy/1f5pTXF2H2cJoeAUl9PerRf79lG53Qe0BrueueL+mwaZktSNTxJ+ilzf39nGSWDl8RFoa+Z4d1GGRSG+cdeoC/GxDiQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716816408; c=relaxed/simple; bh=GflM09Ty5ySMzHW0VQRjEjWl/D2bFn8865uwf7NdYgk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=L1lgynBFRu8kCEKYI9pFpgnYh8hlFITEaPovPMfambduRsQRPOKW0TO11fk5HhkeVlYGq8ejlJcV47/aoRT8qQ9g3lwkxDwvxDk3cheBgv051S2SA0d2dMjdKZ7bSYSHgRSgLmB6oyfZP6vP2T0ntrruMLySKJ4bW9PPUPClgAw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=y7JKitKF; arc=none smtp.client-ip=209.85.128.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-627eb38eb1bso46429147b3.1 for ; Mon, 27 May 2024 06:26:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716816406; x=1717421206; 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=GflM09Ty5ySMzHW0VQRjEjWl/D2bFn8865uwf7NdYgk=; b=y7JKitKFoNlLazLZQPCVhxVab3Ms0OENbwVfGrpqhKRAoEOk1FFHa0AHdXwWnaUCTr Ox/HiUrV1VHysZ9D5kPOcskxtNIHIIAO4l1IrodVzKLabakGX1LYW16C0T4P7YEFVr5Q wgwydTSQ37wxE8nceFFSb5ZEdor5oy7oG9AwaRwp7Poei4pfTZ7zI1sUaejHHGfP4yvK ACJPIhQf4jL5pUWiC8rqxdgypfR+6YEw34omEzXd95HSFImUyvT7mggVuiUy+yxV/SIH fcehDDg16Ufb02OK4WBT7NvWgH3OCArI0kWwMUbCyXt/wxvKxGNOPKuH19vR7XuojguJ ocaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716816406; x=1717421206; 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=GflM09Ty5ySMzHW0VQRjEjWl/D2bFn8865uwf7NdYgk=; b=dZmUt7yvmG0qnDWkzb2Sf543+vs5pyXxLD1zmqDxV0sV56bh+q9D4WHh/YWODPNSek 0votwDveqOotH62NXU3APp3SWPol75ni68G2pkB6ahLAQgM589ht+VCYtaYag0N1/QZy 4eBiE6wlnUM/umLdlLhtsaTQ49o/ufp0Ej1PoQ2iDbKjKISNZyTRVv47hejdZgwlHE7n xSzlhJAK06COkIJGSEjWzOim4WD5XCjMoekz7mQTzyk+9WGOoYO3ivSaORv1VwCnT3C8 A22xDHqjgMV72WQePM8C3YkD0zz3XFwT8UFABXUDVaJQG10nwHnow+p+ttsCI3gQSdNG cfHQ== X-Gm-Message-State: AOJu0YzIg5k/30UA9i1DSeYEWyaS+5dyysZ2iDk/m5b5Ni0cX4jKScn8 Txh6OW5EqSS+hXReHsjxA45UVPXSv7p4CwtTMqcNscoNjKndkYemNbSBTTq0JDTLxvyDujUo4Lf Vz6PHn7E1+Fjv0Jeuz1Z8uIWmSOZmPPbg1RjeQA== X-Received: by 2002:a25:ad96:0:b0:df4:dd95:cc87 with SMTP id 3f1490d57ef6-df77215545emr8661187276.10.1716816405947; Mon, 27 May 2024 06:26:45 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240508184905.2102633-1-andriy.shevchenko@linux.intel.com> <20240508184905.2102633-8-andriy.shevchenko@linux.intel.com> In-Reply-To: <20240508184905.2102633-8-andriy.shevchenko@linux.intel.com> From: Linus Walleij Date: Mon, 27 May 2024 15:26:35 +0200 Message-ID: Subject: Re: [PATCH v1 07/10] misc: eeprom_93xx46: Convert to use kstrtox() To: Andy Shevchenko Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 8, 2024 at 8:49=E2=80=AFPM Andy Shevchenko wrote: > sscanf() is a heavy one and moreover requires additional boundary checks. > Convert driver to use kstrtobool() in eeprom_93xx46_store_erase(). > > Signed-off-by: Andy Shevchenko Reviewed-by: Linus Walleij Yours, Linus Walleij