Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F1F7C43219 for ; Fri, 26 Nov 2021 07:20:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359137AbhKZHX4 (ORCPT ); Fri, 26 Nov 2021 02:23:56 -0500 Received: from mga07.intel.com ([134.134.136.100]:24250 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232938AbhKZHVy (ORCPT ); Fri, 26 Nov 2021 02:21:54 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10179"; a="299027074" X-IronPort-AV: E=Sophos;i="5.87,265,1631602800"; d="scan'208";a="299027074" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2021 23:18:41 -0800 X-IronPort-AV: E=Sophos;i="5.87,265,1631602800"; d="scan'208";a="554826905" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.163]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2021 23:18:35 -0800 Received: by lahna (sSMTP sendmail emulation); Fri, 26 Nov 2021 09:18:32 +0200 Date: Fri, 26 Nov 2021 09:18:32 +0200 From: Mika Westerberg To: Hans de Goede Cc: "Rafael J . Wysocki" , Mark Gross , Andy Shevchenko , Wolfram Sang , Daniel Scally , Laurent Pinchart , Mauro Carvalho Chehab , Liam Girdwood , Mark Brown , Michael Turquette , Stephen Boyd , Len Brown , linux-acpi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Sakari Ailus , Kate Hsuan , linux-media@vger.kernel.org, linux-clk@vger.kernel.org, Andy Shevchenko Subject: Re: [PATCH v6 03/15] i2c: acpi: Add i2c_acpi_new_device_by_fwnode() function Message-ID: References: <20211125165412.535063-1-hdegoede@redhat.com> <20211125165412.535063-4-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211125165412.535063-4-hdegoede@redhat.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 25, 2021 at 05:54:00PM +0100, Hans de Goede wrote: > Change i2c_acpi_new_device() into i2c_acpi_new_device_by_fwnode() and > add a static inline wrapper providing the old i2c_acpi_new_device() > behavior. > > This is necessary because in some cases we may only have access > to the fwnode / acpi_device and not to the matching physical-node > struct device *. > > Suggested-by: Andy Shevchenko > Signed-off-by: Hans de Goede Acked-by: Mika Westerberg