Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1298171lqm; Thu, 2 May 2024 10:20:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7BHNV/Th7X8UD7HyXktEEKB2t3qX//PE7mA1pQ+w93K5oS3syOm3QhG4tfhLiF/3RWE0gvNSCo5q8Iuj5ZbI0WrHRNb86Dq61+KUjRw== X-Google-Smtp-Source: AGHT+IEEoGnXiijynoJ7fz7KgCFYPwZ+SI8NLmuw62T5HKyN9UKDCixB8UfZrTCt/38A04IAcFAV X-Received: by 2002:a17:902:eb86:b0:1e4:a667:5528 with SMTP id q6-20020a170902eb8600b001e4a6675528mr432450plg.3.1714670427012; Thu, 02 May 2024 10:20:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714670426; cv=pass; d=google.com; s=arc-20160816; b=sIuWPy7QPAnb6GqeDChkgO4wL5th25XL/O7n900yQtOVn9fCc4kjYDaSoeqthu0YOP WFWUigMxktINYcZDMtPQCB/j180dSC41FqZLrEbC7jwU7eqrAOEQ6Gg+yijl6OEectPy y6ON4IJ97ZUGJpS+C9R/Lbk5fOPUrv4dWxMca0Q7rsnyUGsL3kyukexDGazxqa72H9Fv UPjDdBIyKnIzwygR7fQMA/qpP9mtk9Eh3JFN/d79OjHvDLnURQKuty/U5vD4xQRm2KKG fSZsC/L5Y5uGa5QU8Ik32ZMPT9sJOPoaVYj75dwv62WIyi/xMpHL5k8/KntHmrJwcSyj pleg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=LPr59hGp3Y8Sy2R6KMi/etOj+zaHEsp+z/IFg+Obb04=; fh=pj5UxigTC94WViZ+qs5AUMCTuLJzK5Fx8SukDxAqVrg=; b=jzV6yOA6hEDmPsmuJ/MTVnCQlKh1nZWpYLcyuG813lJBS8gA5Skbt2iDgpbQHb+p5e MS0GNY2g0nxAIJIkLA/6ZuIb31Srn9tA6q/1uiUqWV7eRI+GlXLyxQeTLIMsnETuESj6 c5SGaiIIewriJXnkRrestlb8arufA2o0yFyVF6Z2l4xbWRQVaUwhcX3IjHu9DCW9ceUX AriV3DiDsFmWUY25dpd7x77cnHKOfrWPGCXZyxfV+q4p8zKj2jHZLYxN2YQm0ZGRkOUP nPs4JBDWyuiqyu+5FSiaU8Hj4RXwCrr2+MQJkEklSgI+LwSwV5LyKtAHd0Xm/uXSA2sr /l9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kaXpITXu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-166767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166767-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z14-20020a170902ccce00b001e5075f1344si1419895ple.579.2024.05.02.10.20.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 10:20:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kaXpITXu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-166767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166767-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 619AFB23B09 for ; Thu, 2 May 2024 17:06:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B7A8116F918; Thu, 2 May 2024 17:06:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kaXpITXu" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D985916F278; Thu, 2 May 2024 17:06:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714669601; cv=none; b=dskYX72nirKV4Hfd8aq1JkDOVRldvhe9oXZTaIZNNxayrEExQzqyaNxrLeRdGo5xSWF2hFVeEnGM2yHthzivt0J8HOdUoDtFFZhp1av+8FYag6Tj2XLIVmphltWf0K8phZl4ZIPRHWauTp1ZQtqMN+Ie2TDb/+28z7w6C9cPPwQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714669601; c=relaxed/simple; bh=mE4BhmHAO8yuu5uppOjZG2uFJX80WjKUKiIe9bnCy9I=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=Iktoi7jI2RJVTt0I5U/gzLONuFhMUZIZsfQcLTdq7PmKhkOtwYyExyWvcoIMWLVzO+c4mguKaqcWmzkE8nZp2FMp5lMTPMP9llzUXvZQbAaRWauEyVN8Fw9IwAVk6U7kLIAmHAfx7xCSgVmkxyzJswEVDy3P27Ga/YyVgLb/VGo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kaXpITXu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 595B8C113CC; Thu, 2 May 2024 17:06:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714669600; bh=mE4BhmHAO8yuu5uppOjZG2uFJX80WjKUKiIe9bnCy9I=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=kaXpITXuotBffWHCOpJMvMuqQSN7yg80getj8BfSUFKo1v9CzHGunWBguPcZPEeTP 3LTiL8ANruypLtxOqhSotIlQxkMFjOttJ+DxihyEKzGjylSmPtXNECUGHD5hYXaY+Z vDxVpazITT2hHLeJqkVeeO+duKaKt8qw9EhRE55vVe6stFPU9fn7K2q3nK1KwIfINl mVpIhw8Zd74V+RoUJNxVtXc4z5eAagpAYzqc3r0tEsY21hw1tJ3YMnn0KB6Imz61Zg cSzH8h7Ye6AAyJxpAGnQyqWEzKPpGuvraiWE1dkOB5DUUoxONyGnU62sZ4nAQYWfRd AIURHxFNWSgXA== From: Lee Jones To: Samuel Holland , linux-leds@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Andy Shevchenko Cc: Pavel Machek , Lee Jones , Chen-Yu Tsai , Jernej Skrabec In-Reply-To: <20240426152515.872917-1-andriy.shevchenko@linux.intel.com> References: <20240426152515.872917-1-andriy.shevchenko@linux.intel.com> Subject: Re: (subset) [PATCH v1 1/1] leds: sun50i-a100: Use match_string() helper to simplify the code Message-Id: <171466959809.1216285.1962386454331475861.b4-ty@kernel.org> Date: Thu, 02 May 2024 18:06:38 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.12.4 On Fri, 26 Apr 2024 18:25:15 +0300, Andy Shevchenko wrote: > match_string() returns the array index of a matching string. > Use it instead of the open-coded implementation. > > Applied, thanks! [1/1] leds: sun50i-a100: Use match_string() helper to simplify the code commit: 3b29c7b9f701e5afbe6b536eb2744acb25cf5bfd -- Lee Jones [李琼斯]