Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2028422ybi; Thu, 20 Jun 2019 08:00:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCu8JODOgEMu1cnVqmveMzxsaL7NGjbNqqVr7cIVpA3ekmsA2QMvVcgguV9CVdkSkjz+8Q X-Received: by 2002:a17:902:da4:: with SMTP id 33mr62629980plv.209.1561042815188; Thu, 20 Jun 2019 08:00:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561042815; cv=none; d=google.com; s=arc-20160816; b=OyyD1zt0rH6Xzg/MxQbc52odXYy6+aeZUe/xd6nm7TNWdlAVQKNDQ4ZukYLbB6/rDh dtGZLum7v/WaxPOKJLOEq2YXsGj86PDAKDYav6KdD5te5VNHg63mnSOA4A2MmmEIduXm D4pi1IrCKuFRCP1by4uNm2gGs0WFroydjwfkcJDKx6NvE5w5vq20n+V17vJ0W+C7cCKH nbOLGOsKRlTs0m3panjiagFxqPRd8UyoLyE658VUMrnwlsaYSBsJ2Ldty5xc+MkF77GB yLSTf5wjBO3YmomNQIXgWdXErf0SG0uyWlIidHo0Buz41wR29S5YmEPwi+S1ylppjetC PTBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=mtXVyv3K1S38DLesmhIu05IwP0cjeJKUYC3UUUNX50I=; b=PYLdGkkOwKoL8WEHx8b6EnNLxZR1fMcs3aqArZkx5wUWzqrs9AsIVzptzWHWNRxCsv r0OlN99A+q2gXOaKSk2FdtvzZ84ftRbSaCtVglHWLwiJocyRWbmLDwBx6cdmB4xSpmT/ olUjGVuguGnaj5ORV9j5lNJeNjcr+H6WUJYTttEMZktM17PyQef19aCEj9mJ5yPk9XvN rmZ2MEr3cq2jzSNPvXocm6h6h4J7Kf6/XMuTbR8Teq+K43VSNJ+UtP779m1j+6BLASQN LL2OrKZxBOXSSTV6Zc8tkMJt+Tb+tp/pMcHpp78l+zXE4bAeyelB78159GdiKURJTahT BWNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h187si19735845pfb.129.2019.06.20.07.59.58; Thu, 20 Jun 2019 08:00:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726811AbfFTO7y (ORCPT + 99 others); Thu, 20 Jun 2019 10:59:54 -0400 Received: from mga11.intel.com ([192.55.52.93]:54140 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726530AbfFTO7y (ORCPT ); Thu, 20 Jun 2019 10:59:54 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jun 2019 07:59:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,397,1557212400"; d="scan'208";a="168538290" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.145]) by FMSMGA003.fm.intel.com with ESMTP; 20 Jun 2019 07:59:51 -0700 Received: from andy by smile with local (Exim 4.92) (envelope-from ) id 1hdyXW-0001Om-Me; Thu, 20 Jun 2019 17:59:50 +0300 Date: Thu, 20 Jun 2019 17:59:50 +0300 From: Andy Shevchenko To: Charles Keepax Cc: wsa@the-dreams.de, mika.westerberg@linux.intel.com, jarkko.nikula@linux.intel.com, linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, benjamin.tissoires@redhat.com, jbroadus@gmail.com, patches@opensource.cirrus.com Subject: Re: [PATCH v5 4/7] i2c: core: Make i2c_acpi_get_irq available to the rest of the I2C core Message-ID: <20190620145950.GE9224@smile.fi.intel.com> References: <20190620133420.4632-1-ckeepax@opensource.cirrus.com> <20190620133420.4632-5-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190620133420.4632-5-ckeepax@opensource.cirrus.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 20, 2019 at 02:34:17PM +0100, Charles Keepax wrote: > In preparation for more refactoring make i2c_acpi_get_irq available > outside i2c-core-acpi.c. > Reviewed-by: Andy Shevchenko > Reviewed-by: Mika Westerberg I'm not sure Rb tags are suitable for patches 4 and 5 since the changes made. > +struct acpi_device; Hmm... Doesn't acpi.h define that for !ACPI case? > #ifdef CONFIG_ACPI > const struct acpi_device_id * > i2c_acpi_match_device(const struct acpi_device_id *matches, > struct i2c_client *client); > void i2c_acpi_register_devices(struct i2c_adapter *adap); > + > +int i2c_acpi_get_irq(struct acpi_device *adev); Since you call this afterwards with struct device from which companion is derived, can't we directly use struct device as a parameter? Yes, in case of adev call, it might be &adev->dev I suppose? -- With Best Regards, Andy Shevchenko