Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp935237rdg; Fri, 11 Aug 2023 05:01:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEFqEg5Uctw9gMO/Gx1LaoiBml+EvPimbAr/wLBwmYfqBgo7/ecy9PzRJrUx1NbycLkd0a8 X-Received: by 2002:a17:902:d2c6:b0:1bb:d7d4:e0d with SMTP id n6-20020a170902d2c600b001bbd7d40e0dmr1382118plc.64.1691755267272; Fri, 11 Aug 2023 05:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691755267; cv=none; d=google.com; s=arc-20160816; b=VWYwdG0cnR/zadX16zMKkpKgtFSwnk4/vHte2qBdrImSM0BilZQpkkC25HbEqCXARs WMySfn2iLCGfpoCYuvrMgBtnlyqLuMleJYBKofBX5l9GLYugOlbH3CtTsCb2uSTWMpIC mReCJv1pLBnDQ+k/ZQrYKXqgArq+js4Rpo+HLfLUiE7KpCNlyzpLLMay/iKULgMjq+Ck 4UfdtFV3h05ZmWnNprSeIzm/LXmpbPNe925NYzAoYSBDlUjpIHyORrRK3Xfg1A0wSZ43 w3Rj5vYUP0oItAB4q+Le3SEz+7EgsGxr+94Hx1R0rVeVOioBX7dWDGj+/vVOuPwAnyhT 7IgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4UdKp6tfWu0Vdyha7XN9i+ZiUc8uf1UefEfXPwg7urY=; fh=U/w/jYcY6YtgPPBLHfvCyUSHFGEzmS7fDjKvpY50evU=; b=NWrTDJbZmAcwOTwh4kWHaaV+xduGkMMqdlLEd5XBOa8PPoy3LNnTzwEqLMsBwaGOL0 0AgT22x6y4zk3z6M2auZGXmymF0SPKtjG5GxO9elrBrK+yGL+EZ53zbG0xSwKiSejylQ ii8O7kr73NFmFdNHST5ncZcEkLcyI4NBFRqYpWULzqkgteNvs102FZ/1/j67j4aIcnYq GHkwX/VXXwaRPR9YSer//8YnIuExc5jMbaS+prla59QrKOhBEVw2y44ErqG6VYwuukeh vkjrehhFajn5fK84mR51yg/q9B9rwMqvpiYVOwBYFS81eRR1HVeXC1PqPEBwUvHaMJjU DUCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mess.org header.s=2020 header.b=Qkr8lCMA; 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=mess.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d10-20020a170902654a00b001bdae8ceaf8si1972398pln.326.2023.08.11.05.00.53; Fri, 11 Aug 2023 05:01:07 -0700 (PDT) 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=@mess.org header.s=2020 header.b=Qkr8lCMA; 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=mess.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235154AbjHKJ5X (ORCPT + 99 others); Fri, 11 Aug 2023 05:57:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229907AbjHKJ5V (ORCPT ); Fri, 11 Aug 2023 05:57:21 -0400 Received: from gofer.mess.org (gofer.mess.org [IPv6:2a02:8011:d000:212::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF9182728; Fri, 11 Aug 2023 02:57:20 -0700 (PDT) Received: by gofer.mess.org (Postfix, from userid 1000) id 4A09C1000CD; Fri, 11 Aug 2023 10:57:18 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1691747838; bh=3HIl4Pdh0akdtOgpVnRFUOW7CwtiPKkOA8CKhy7hI/A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Qkr8lCMAGEaqpCpngAHqvXTtpXOGS2bhOeWvr3pavCW7Hg8CyqLS1sg88amOsEiap EIpGqPeRwQzLQZ9RhyHh0BPI7hVIvar6bUebjb0ztk85Ybk76L/BcH/Vo03HzuoMes LgClZ+PuaoXPZHksxqSR3P6QBUFaoGiqSvZ1dmimYsO9JL9cSxcIwX1AKZZH6f2w7I zNeiLHoLhNs1R4rwJWySqM1yNa004ctGBayIThlC+UG1GNWPL5c4cj0TOfxcGo18Kx XMASHz1DbTSNOk/bAm8ccq27tU1vC5PtGzSRx54bqzZGBqNClc2xXSfnlQj8idYXbX STJBe4e19p3Ug== Date: Fri, 11 Aug 2023 10:57:18 +0100 From: Sean Young To: wuxilin123@gmail.com Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring Subject: Re: [PATCH] media: rc: ir-spi: Correct regulator name Message-ID: References: <20230805-ir-spi-v1-1-33af4a556139@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230805-ir-spi-v1-1-33af4a556139@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 Sat, Aug 05, 2023 at 07:23:35PM +0800, Xilin Wu via B4 Relay wrote: > From: Xilin Wu > > The driver wrongly assumes regulator is called "irda_regulator" > instead of "power". > > Change it to "power" to match device tree binding. > > Signed-off-by: Xilin Wu > --- > drivers/media/rc/ir-spi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/rc/ir-spi.c b/drivers/media/rc/ir-spi.c > index bbc81bed4f90..a447bb36100d 100644 > --- a/drivers/media/rc/ir-spi.c > +++ b/drivers/media/rc/ir-spi.c > @@ -119,7 +119,7 @@ static int ir_spi_probe(struct spi_device *spi) > if (!idata) > return -ENOMEM; > > - idata->regulator = devm_regulator_get(&spi->dev, "irda_regulator"); > + idata->regulator = devm_regulator_get(&spi->dev, "power"); I agree that irda_regulator is not a great name and it probably should have been picked up in review. However, is it safe to change without breaking backwards compatibility? Rob, what do you think? Thanks Sean > if (IS_ERR(idata->regulator)) > return PTR_ERR(idata->regulator); > > > --- > base-commit: 024ff300db33968c133435a146d51ac22db27374 > change-id: 20230805-ir-spi-3473c5f34764 > > Best regards, > -- > Xilin Wu