Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp367889rdh; Thu, 23 Nov 2023 06:12:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgfvpMQRsuejx13PSxGtqRFMuwGrewisDNXgTbg6fH3eX6CqmmILf5M0UvAI68HFGOl58q X-Received: by 2002:a17:902:dac2:b0:1cc:644a:2129 with SMTP id q2-20020a170902dac200b001cc644a2129mr4001170plx.32.1700748734862; Thu, 23 Nov 2023 06:12:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700748734; cv=none; d=google.com; s=arc-20160816; b=nlU/4t5BkRQ1ze2sNgBLswsHllg+7AtvqzBcqudQ69RQlJQTFvmV+2aM0oeFHroLew 9MTreqOxbWsxSKSRerzR5tVTnp/23wSmKIdirTK30mlxCbHe8roY+NSGlyWeXQu7f/vd LK7PI5EpAbaX2+dt38Al5FfkccC0oOu71qmJHiqF8Tj3lypnIA5wD3nL09cnr6YZdY8f 0R+FdOEgIRnlNk2ZTJAB1ER1OQfTJhVrJrux1T6AHqSLpwqilBSDebZF52g5cUnWWB7I EmJJ5pWVWJStxzWPCCRpQy9XfK42uoxoqMO1hEiwOUYdjwBj+B6oVPJSVANJJhX3MPiF EWqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=4UP75U7gfqxPUHyHmHzrwHgpaKVdtrcIThRZ2HEzMD0=; fh=TLhEqgULHxlILS4qldoK8dGgqMcR/F0yQthFKB2ziGs=; b=MkCvTQb2XheojUgQsk2v/UDoBvymbvWSKHcVMbKPw+8YajBKLy0kRARIwDRCh/OEl1 +Y2Y2eMeMBiUErU8LeTMF98YvOhzzWJxwPJ3NvX1oVgkiiev0f2C7+lzY/hCweXyLsZ3 36X/nslD7xjQumadlAETpFvRuAZL5eKadxB0zUFd4OP3GLPAJ6pGoVt7BD2rYu1hW1v2 /bVRmXv46bDvFOEH0+cXbk/qSiHA/W9tXzwT/xXHAj4rWCo21xNJ/zPQ0F+kSsk09JWV x4+DaS8u87BF4pjydDF5s06XWl49InGZKgkgrzuzlu8HXhYecLGFhieWRm72PXt8q0su UapQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IkFfJ2un; 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=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id m7-20020a170902db0700b001cc4fbe9281si1143477plx.582.2023.11.23.06.12.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 06:12:14 -0800 (PST) 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=@intel.com header.s=Intel header.b=IkFfJ2un; 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=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 538B4809FEFB; Thu, 23 Nov 2023 06:11:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345719AbjKWOLC (ORCPT + 99 others); Thu, 23 Nov 2023 09:11:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345696AbjKWOLB (ORCPT ); Thu, 23 Nov 2023 09:11:01 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D20BED48; Thu, 23 Nov 2023 06:11:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700748667; x=1732284667; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bW0unczmLC8Z6r9eteprn03yFMbnTDGSjK+E3ygFzGI=; b=IkFfJ2unTcDpiczOCT2mYMkV6hdA58H6MWxphmFY/1OMFwqHlbt7G40s EieTa66QdrsCJRzX5fgwKMmKju4LFhtohODNt0yZmIlTH7ZfsP6JHQE/w bgr0TWNskDx5Nr2ZjwrHz/Myc44UDTHD1BiAkXNaG+0yCYR/SJMAlZ6os ovGLNSCzQHZga1qeYPUQr1M5ftZyQGTMP8BcBtD4D7Ng0cRtn/nvoDnSO ujhbxsUqeIgSP7pf1s3neCLPf8Qt//B3woojBa8uJKQq01YO34S8K09Iz FGvZKP+tr7CfLxLR1qcxycxKusKhlztbgOMh6w1/ivAF9Sk4vEo8U73iV w==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="478472474" X-IronPort-AV: E=Sophos;i="6.04,221,1695711600"; d="scan'208";a="478472474" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2023 06:11:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="911178084" X-IronPort-AV: E=Sophos;i="6.04,221,1695711600"; d="scan'208";a="911178084" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga001.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2023 06:11:06 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1r6AQ3-0000000GO4A-2Uxq; Thu, 23 Nov 2023 16:11:03 +0200 Date: Thu, 23 Nov 2023 16:11:03 +0200 From: Andy Shevchenko To: Lee Jones Cc: Linus Walleij , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Pavel Machek Subject: Re: [PATCH v1 2/4] leds: trigger: gpio: Convert to use kstrtox() Message-ID: References: <20231103195310.948327-1-andriy.shevchenko@linux.intel.com> <20231103195310.948327-2-andriy.shevchenko@linux.intel.com> <20231123110538.GA1243364@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231123110538.GA1243364@google.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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]); Thu, 23 Nov 2023 06:11:17 -0800 (PST) On Thu, Nov 23, 2023 at 11:05:38AM +0000, Lee Jones wrote: > On Fri, 03 Nov 2023, Andy Shevchenko wrote: ... > > - ret = sscanf(buf, "%u", &desired_brightness); "%u" (see man sscanf() for the details) ... > > + ret = kstrtou8(buf, 10, &desired_brightness); > > Where does 10 come from? See above. -- With Best Regards, Andy Shevchenko