Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp616477ybi; Fri, 21 Jun 2019 05:24:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRTmrRea+i9m6toMTyG3pkbnMsbIvKPDv47ValWL0rovG+dCS6OjklUUWMK2FV/DqZvLOC X-Received: by 2002:a17:90a:bd93:: with SMTP id z19mr6426045pjr.49.1561119872161; Fri, 21 Jun 2019 05:24:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561119872; cv=none; d=google.com; s=arc-20160816; b=oiWwt2d/ipB2gn4zmMiaNdfI0N9tOaYwlNq5RMiDTKbDlaLwEtGVA4vm7J43TX+DeK OnSlrZbTpuBGk9CK26mdmPkTaQ4VAH1bMZQfHRRmIlLOd0l9Nfo6RtZ5T4KFiwe9Vks5 tFWcQmmGbRykm3Mcc3anNmj4yCJHJrW4bReLkwfm1tpdjQ9UadornWJxXoFv6nPQsumk Vn4rfbqEgUTA3PoadofIVbai1cDRt9IIMkwZK1sk/KqQQ0JIwaMXYIR6sqOangB31d4p md/IcHwBc2pqVAZEwMGVTJ6j7P6C7Kkf/zGCdgMmetYeX4nzkmMmeGWV5haRkON5RYKf y/gA== 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=YnVdQi8kyneTP/6ab8Z2zzV38ZgIHDL2x6v02sGWdwM=; b=p/beUt1pJQAZ8sL0x0aZzrvLC34aVWNmP6qH8f6aupkTg4HDpQvXLNgLW1uSNgmQA7 1UQynkjlkYFPqtYbb+lCBu8rtb92Qo6+H0N7Lqlc9uDQ4TLRWKYXki/HhYGcHnysZr8o bFJtiFceF9vhYdFNKG++wW/RV7+ptmXQCmGVOLXXillUwj1ochiB0zCi209hVxEYJdo0 u/rqfrSZcYWl1G1twNB8pWXe6u6lW8PFwNWCWmLGvib017e0CwbX4v1YDLcJw920qbNq P/OgbE4+SbvH15SC9K5CXmCVLbL1g445KwmhzcmRxWjOm8B6StHax37HNHmauqMRxDVA 3YTA== 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 d191si338722pgc.470.2019.06.21.05.24.16; Fri, 21 Jun 2019 05:24:32 -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 S1726545AbfFUMYM (ORCPT + 99 others); Fri, 21 Jun 2019 08:24:12 -0400 Received: from mga12.intel.com ([192.55.52.136]:50710 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726229AbfFUMYM (ORCPT ); Fri, 21 Jun 2019 08:24:12 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jun 2019 05:24:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,400,1557212400"; d="scan'208";a="165637488" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.145]) by orsmga006.jf.intel.com with ESMTP; 21 Jun 2019 05:24:08 -0700 Received: from andy by smile with local (Exim 4.92) (envelope-from ) id 1heIaM-0004Pm-Ra; Fri, 21 Jun 2019 15:24:06 +0300 Date: Fri, 21 Jun 2019 15:24:06 +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 v6 4/7] i2c: core: Make i2c_acpi_get_irq available to the rest of the I2C core Message-ID: <20190621122406.GL9224@smile.fi.intel.com> References: <20190621100815.12417-1-ckeepax@opensource.cirrus.com> <20190621100815.12417-5-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190621100815.12417-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 Fri, Jun 21, 2019 at 11:08:12AM +0100, Charles Keepax wrote: > In preparation for more refactoring make i2c_acpi_get_irq available > outside i2c-core-acpi.c. > > Signed-off-by: Charles Keepax > --- > > Changes since v5: > - Pass a struct device rather than acpi_device to i2c_acpi_get_irq, > note this is more awkward than I would have liked as I am very > unconvinced that adev->dev can actually be passed to > ACPI_COMPANION. If anyone can answer that for sure that would be > very helpful. Sounds you are right. I stand corrected. We can not use ACPI_COMPANION() against &adev->dev. -- With Best Regards, Andy Shevchenko