From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Thomson Subject: [PATCH 0/2] ASoC: da7219: Convert driver to use generic FW functions Date: Tue, 17 May 2016 11:28:57 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail1.bemta3.messagelabs.com (mail1.bemta3.messagelabs.com [195.245.230.168]) by alsa0.perex.cz (Postfix) with ESMTP id 480F4261703 for ; Tue, 17 May 2016 12:29:08 +0200 (CEST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Mark Brown , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Greg Kroah-Hartman , Robert Moore , Lv Zheng , "Rafael J.Wysocki" , Len Brown Cc: alsa-devel@alsa-project.org, Heikki Krogerus , Support Opensource , Hanjun Guo , linux-kernel@vger.kernel.org, Suthikulpanit@diasemi.com, linux-acpi@vger.kernel.org, Sathyanarayana Nujella , Suravee , Bjorn Helgaas , Andrew Morton , Andy Shevchenko , Mika Westerberg , devel@acpica.org List-Id: alsa-devel@alsa-project.org This patch set converts the da7219 codec driver to use device/fwnode functions to access properties, instead of the DT only of_* functions, allowing ACPI to be used as well. The DT bindings for da7219 have a device node for the main codec properties, and a named child node (da7219_aad), which contains all of the accessory detection related properties for the device. ACPI also supports this kind of FW hierarchy (data only sub-nodes), but some support in the kernel needs to be added to take make use of this in driver code. The first patch adds functions to allow searching for a named child node of a device, for both DT and ACPI, and the second patch updates the codec driver to use the standard device/fwnode calls, including this new function. These changes are based on the v4.6 kernel. Adam Thomson (2): device property: Add function to search for named child of device ASoC: da7219: Convert driver to use generic device/fwnode functions drivers/base/property.c | 28 ++++++++++++ include/acpi/acpi_bus.h | 7 +++ include/linux/acpi.h | 6 +++ include/linux/property.h | 3 ++ sound/soc/codecs/da7219-aad.c | 103 +++++++++++++++++++++--------------------- sound/soc/codecs/da7219.c | 34 +++++++------- 6 files changed, 112 insertions(+), 69 deletions(-) -- 1.9.3