Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2546823rdb; Tue, 12 Sep 2023 05:33:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEmWUCqVOnL2CDXof3eZ0ALjYkfoi1aOI0KAVR8G/pkqpeZTAtUOttQEiWmocS6oyp0rb9w X-Received: by 2002:a17:903:2341:b0:1c2:811:2cee with SMTP id c1-20020a170903234100b001c208112ceemr13625095plh.23.1694522014537; Tue, 12 Sep 2023 05:33:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694522014; cv=none; d=google.com; s=arc-20160816; b=F6o8rcfLHo2pBSZDYrEvD9/VYod6TEB1RnCdHfow0Z7jDk6B3IrK3rZo9/y8qf4j6F c3Ygpnloycjvh0yJbPZnFkJ460VyJw2OguU+VsBmQmByKkQTvekhCyGByWvdZaw8XgcF /ePTM5HKOUJWtABzS8zmA8ZGxqONgcjtUjzmTEfpyXnelOy1fZryp5a80GK4v4+rhxk7 7HttVFSn/QCIdBD9GemKPrL9FWykOHIqPqfTwAWhk/LWFCZDuL4sSPUIrHHmGybitdBb tXco3ttRmOKy8GIs9I1gNxEKJ+33wQ9iFOUDhBHWifjXgJOJ3jsBhVyVnrNsi1z8/X4D Q8tA== 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; bh=xwQp7zfbQDAKOPLOlItVIzB4bV8a3CgsMaB2Q6bWy50=; fh=vvN+9ue8t6SBHVKXtUD7MWCwgB4AuyAAMjW2r5GrVLs=; b=iOTG1pOP/aQj0wdcX0yPZ7FnwNahf1+OghdH5l4ktaHy+q+soyAyh24keX2bJfjpzg 3ukoKu2C+HOC3MUdRV5h8HuS+z/9ZXcI9mFm6N440cp8ImzKbzwx2mjUgOd1FXNKq0A8 /9pYOU9WGMPh27n/ZK1BOM13e9MoOC2FwMnwUq282mP9Y+LITFwOqqKPcI6aE9seydwI 9mnCFRf+zhPL/Fv5dYkaTuKhO6JAPiQIjsozqDqUf5yWrDPhxOwPMWBiBf2KZp3nZpfD hjNTgyJBrvp2gO6FBHwtGBVDaJ9JPMPXZQy+ztpcaIvKpxwQFkGKL3rWecDUVWXX2IfM m0Uw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id z13-20020a170903408d00b001bf223c315bsi7614857plc.60.2023.09.12.05.33.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 05:33:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 8CA1A80DCC8B; Tue, 12 Sep 2023 03:38:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234068AbjILKiX (ORCPT + 99 others); Tue, 12 Sep 2023 06:38:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234059AbjILKiV (ORCPT ); Tue, 12 Sep 2023 06:38:21 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE2C5E6B; Tue, 12 Sep 2023 03:38:17 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="363368080" X-IronPort-AV: E=Sophos;i="6.02,139,1688454000"; d="scan'208";a="363368080" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 03:37:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="858749845" X-IronPort-AV: E=Sophos;i="6.02,139,1688454000"; d="scan'208";a="858749845" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 03:37:50 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qg0mC-008YxB-08; Tue, 12 Sep 2023 13:37:48 +0300 Date: Tue, 12 Sep 2023 13:37:47 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Linus Walleij , Orson Zhai , Baolin Wang , Chunyan Zhang , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: Re: [RFT PATCH 3/3] gpio: eic-sprd: use devm_platform_ioremap_resource() Message-ID: References: <20230912094519.22769-1-brgl@bgdev.pl> <20230912094519.22769-3-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230912094519.22769-3-brgl@bgdev.pl> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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 (fry.vger.email [0.0.0.0]); Tue, 12 Sep 2023 03:38:25 -0700 (PDT) X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email On Tue, Sep 12, 2023 at 11:45:19AM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Make two calls into one by using devm_platform_ioremap_resource(). ... > - res = platform_get_resource(pdev, IORESOURCE_MEM, i); > - if (!res) > - break; > - > - sprd_eic->base[i] = devm_ioremap_resource(dev, res); > + sprd_eic->base[i] = devm_platform_ioremap_resource(pdev, i); > if (IS_ERR(sprd_eic->base[i])) > return PTR_ERR(sprd_eic->base[i]); break != return -- With Best Regards, Andy Shevchenko