From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sakari Ailus Subject: Re: [PATCH v3 3/4] device property: Move FW type specific functionality to FW specific files Date: Tue, 21 Mar 2017 10:27:06 +0200 Message-ID: <1655370d-6867-9466-6d26-f34a09789369@linux.intel.com> References: <1489671289-20406-1-git-send-email-sakari.ailus@linux.intel.com> <1489671289-20406-4-git-send-email-sakari.ailus@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-acpi-owner@vger.kernel.org To: Rob Herring Cc: "linux-acpi@vger.kernel.org" , "devicetree@vger.kernel.org" , Sudeep Holla , Lorenzo Pieralisi , "mika.westerberg@linux.intel.com" , "Rafael J. Wysocki" , Mark Rutland , Mark Brown , Al Stone List-Id: devicetree@vger.kernel.org Hi Rob, Rob Herring wrote: > On Thu, Mar 16, 2017 at 8:34 AM, Sakari Ailus > wrote: >> The device and fwnode property API supports Devicetree, ACPI and pset >> properties. The implementation of this functionality for each firmware >> type was embedded in the fwnode property core. Move it out to firmware >> type specific locations, making it easier to maintain. >> >> Signed-off-by: Sakari Ailus >> --- >> drivers/acpi/property.c | 87 +++++++++++++++ >> drivers/acpi/scan.c | 1 + >> drivers/base/property.c | 280 +++++++++++++++++++----------------------------- >> drivers/of/base.c | 99 +++++++++++++++++ > > This is the opposite direction everything else has been moving. For > example, I2C parsing is in drivers/i2c. But I guess this is a bit > different. > > In any case, please move this to drivers/of/property.c (and perhaps > move all of of_property_* there too). Ok. There appear to be quite a few functions dealing with properties in drivers/of/base.c either directly reading their values or otherwise accessing them. Let me see if I can find a roughly coherent set of functions to move to property.c. I'll move the existing functions there first, creating a new patch before this one. -- Kind regards, Sakari Ailus sakari.ailus@linux.intel.com