From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ruslan Babayev Subject: Re: [PATCH net-next v2 1/2] i2c: acpi: export i2c_acpi_find_adapter_by_handle Date: Mon, 27 May 2019 19:26:53 -0700 Message-ID: <8736kz9uvm.fsf@babayev.com> References: <20190505193435.3248-1-ruslan@babayev.com> <20190525005302.27164-1-ruslan@babayev.com> <20190527083943.GX2781@lahna.fi.intel.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-reply-to: <20190527083943.GX2781@lahna.fi.intel.com> Sender: linux-kernel-owner@vger.kernel.org To: Mika Westerberg Cc: Ruslan Babayev , Wolfram Sang , xe-linux-external@cisco.com, linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-i2c@vger.kernel.org Mika Westerberg writes: > On Fri, May 24, 2019 at 05:53:01PM -0700, Ruslan Babayev wrote: >> +struct i2c_adapter *i2c_acpi_find_adapter_by_handle(acpi_handle handle); >> #else >> static inline bool i2c_acpi_get_i2c_resource(struct acpi_resource *ares, >> struct acpi_resource_i2c_serialbus **i2c) >> @@ -996,6 +998,10 @@ static inline struct i2c_client *i2c_acpi_new_device(struct device *dev, >> { >> return NULL; >> } >> +struct i2c_adapter *i2c_acpi_find_adapter_by_handle(acpi_handle handle) > > This should be static inline, I think. > >> +{ >> + return NULL; >> +} >> #endif /* CONFIG_ACPI */ >> >> #endif /* _LINUX_I2C_H */ >> -- >> 2.17.1 Thanks Mika, will make the change and repost the patches.