Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp769825rdb; Fri, 22 Dec 2023 04:46:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IEiTVZhR35Yxgq8orgamL+WtLjlVcsHjDoT1UXntK0nIFk+EO32dh1yIqhZU/zC5LsSzyCA X-Received: by 2002:a05:620a:1652:b0:77f:8bd7:6aca with SMTP id c18-20020a05620a165200b0077f8bd76acamr1598634qko.4.1703249189114; Fri, 22 Dec 2023 04:46:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703249189; cv=none; d=google.com; s=arc-20160816; b=gQCyzX5bKe0QqO9B9P0pEnMHN4Ln6BJDITi0SABjo2JtYj75pgwRUfzHTOPPE/Fvex WFthN8ucp7DMBDr8Q3l2K1Yx8tObGyD2ljLFC6e0CEIRtO+SbTYj2qboTVUkzYp7s+M+ X+9OHeTXvWdVF4sfo0VNB+HeZvEorVum9mO0eTDwx3spSrYqzzaRbjAv3PhEEHmY6DOO cylB+v58ddT1sF+qczHyQz4xxmbHWn//2XXdPUZyRn166TTLnyOqVxhH4Wls6Qz1+oIx M23K2UHSM60pSa2481FLhK6EDPoUCxK1Fno9Z8hgVmyqo9J0SXVvzya8HtiyIoc+gEoO vPuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date :dkim-signature; bh=yCmHXC417BUy411pUu7qJQDXVrpsMQbRlLTNczVlnmw=; fh=K0ynd0tG2921sPd2xq0pTRTd1D459QfQZr/UPTcGljc=; b=EN2qahuIAgSD+dnDYHQOu1w0yctdVJUSRzElja6XXaZ1ZXl+38T+RDq/5CsNVBbXJH 8Le6npNdUi515bR8WDRYNxuCAtZMsVTID6nvBu5X5ZkJMUjGr+OqMvhTZAJzpu1AIP13 KWUH5p8+zN9AoEC3otFCG+/yv4pXRy1TvLxr+sgxWtOyBP/p3qLFSoCcNIQCYOkEhpLY T6vRWPrRlZdbHcMh2eU5Jzy2zeACUVTUbE+MDkYQZ0YmD4JfaZ8RcgJrbNjFx9ECJkO3 Ou2WF947kRSnbVLrs/2gFQbwHrBNG2XZKg2z0YyGkWPEsMzW7wrmpBxKVyAJb9iyj+2R yEog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JaGVH2zl; spf=pass (google.com: domain of linux-kernel+bounces-9718-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9718-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id br8-20020a05620a460800b0077d6d82be81si4501307qkb.605.2023.12.22.04.46.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 04:46:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9718-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JaGVH2zl; spf=pass (google.com: domain of linux-kernel+bounces-9718-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9718-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D906E1C2191E for ; Fri, 22 Dec 2023 12:46:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77F3918624; Fri, 22 Dec 2023 12:46:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="JaGVH2zl" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 D196E18038; Fri, 22 Dec 2023 12:46:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703249179; x=1734785179; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=79KGKvfI99h6FsUQLnzddH+/22c8KQjG2/EbM0CWaFg=; b=JaGVH2zlaSu2zo2OKByQtdScM5q5fIT+aCk5gXKkFqU5nHqJoBaMQ2fE YR3LT9qknOaBK69s1r6+1wHIXjmgKf7UTj5Ip6EBgFcHs4jHSaSEP7alo w5lCvshrRgb5MLUL+zyUzEm3TjxrRzRUVub3t3Ja9vjlbrV1NpqcYcGFq AcFUtHEkauf8cmFdkqF35vcQBNpjUrnYpN2QUOPIay4ojFbYzE83NPpiE wMZW1fHoGvrBHeeefg3/wJZeNLAbH3xRHnSarSKN0r3m0uZ1dYs/FFZle EeYJlkyvlkbcUokdwaadxWBBw/3DPh94PFIEJlPlTdhm+6z8ADA+GJSu5 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10931"; a="3197001" X-IronPort-AV: E=Sophos;i="6.04,296,1695711600"; d="scan'208";a="3197001" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2023 04:46:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10931"; a="726778691" X-IronPort-AV: E=Sophos;i="6.04,296,1695711600"; d="scan'208";a="726778691" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga003.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2023 04:46:13 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rGeuo-0000000895l-03PO; Fri, 22 Dec 2023 14:46:10 +0200 Date: Fri, 22 Dec 2023 14:46:09 +0200 From: Andy Shevchenko To: Raul Rangel Cc: Mark Hasemeyer , LKML , AngeloGioacchino Del Regno , Krzysztof Kozlowski , Tzung-Bi Shih , Konrad Dybcio , Rob Herring , Sudeep Holla , Daniel Scally , Frank Rowand , Greg Kroah-Hartman , Heikki Krogerus , Len Brown , "Rafael J. Wysocki" , Rob Herring , Sakari Ailus , devicetree@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH v2 20/22] device property: Modify fwnode irq_get() to use resource Message-ID: References: <20231220235459.2965548-1-markhas@chromium.org> <20231220165423.v2.20.I38ac58ab04985a404ed6551eb5813fa7841ef410@changeid> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Dec 21, 2023 at 04:47:59PM -0700, Raul Rangel wrote: > On Thu, Dec 21, 2023 at 4:46 PM Mark Hasemeyer wrote: > > > > > -int fwnode_irq_get(const struct fwnode_handle *fwnode, unsigned int > > index) > > > > +int fwnode_irq_get_resource(const struct fwnode_handle *fwnode, > > > > + unsigned int index, struct resource *r) > > > > > > It's perfectly fine to replace ) by , on the previous line, no need > > > to make it shorter. > > > > That puts the line at 115 chars? checkpatch.pl allows a maximum line > > length of 100. I can bump the 'index' argument up a line and keep it > > to a length of 95? > > clang-format should do the right thing. Sorry, but no. It has some interesting results sometimes. Like any other tool it has to be used with caution and common sense. If it works in the particular case, fine. -- With Best Regards, Andy Shevchenko