From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752685AbbEFFfu (ORCPT ); Wed, 6 May 2015 01:35:50 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:50807 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750891AbbEFFfp (ORCPT ); Wed, 6 May 2015 01:35:45 -0400 Date: Tue, 5 May 2015 22:35:44 -0700 From: Kenneth Westfield To: Srinivas Kandagatla Cc: Patrick Lai , Mark Brown , Rob Herring , Pawel Moll , Ian Campbell , Kumar Gala , Banajit Goswami , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org Subject: Re: [alsa-devel] [RFC PATCH 03/14] ASoC: qcom: move ipq806x specific bits out of lpass driver. Message-ID: <20150506053543.GA5639@kwestfie-linux.qualcomm.com> Mail-Followup-To: Srinivas Kandagatla , Patrick Lai , Mark Brown , Rob Herring , Pawel Moll , Ian Campbell , Kumar Gala , Banajit Goswami , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org References: <1430414148-10869-1-git-send-email-srinivas.kandagatla@linaro.org> <1430414213-10997-1-git-send-email-srinivas.kandagatla@linaro.org> <20150502235738.GB27804@kwestfie-linux.qualcomm.com> <55486E5E.4010601@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55486E5E.4010601@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 05, 2015 at 12:16:46AM -0700, Srinivas Kandagatla wrote: > On 03/05/15 00:57, Kenneth Westfield wrote: > >On Thu, Apr 30, 2015 at 06:16:53PM +0100, Srinivas Kandagatla wrote: > >>This patch tries to make the lpass driver more generic by moving the > >>ipq806x specific bits out of the cpu and platform driver, also allows > the > >>SOC specific drivers to add the correct register offsets. > >> > >>This patch also renames the register definition header file into more > >>generic header file. > > > >>diff --git a/sound/soc/qcom/lpass-ipq806x.c > b/sound/soc/qcom/lpass-ipq806x.c > >>new file mode 100644 > >>index 0000000..8e9a427 > >>--- /dev/null > >>+++ b/sound/soc/qcom/lpass-ipq806x.c > > > >>+static const struct of_device_id ipq806x_lpass_cpu_device_id[] = { > >>+ { .compatible = "qcom,lpass-cpu", .data = &ipq806x_data }, > >>+ {} > >>+}; > >>+MODULE_DEVICE_TABLE(of, ipq806x_lpass_cpu_device_id); > > > >Surround with #ifdef CONFIG_OF? > > I was more of thinking adding "depends OF" in Kconfig. Works for me. > Is there any possibility that the driver would support non-DT? Not that I am aware of. -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project