From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mika Westerberg Subject: Re: Fwd: [PATCH 1/1] SPI : spi-pxa2xx : fix spi init of WM510205 codec via ACPI (resend) Date: Mon, 10 Aug 2015 11:35:40 +0300 Message-ID: <20150810083540.GE1540@lahna.fi.intel.com> References: <20150713095359.GM16517@opensource.wolfsonmicro.com> <20150715081224.GN16517@opensource.wolfsonmicro.com> <20150715091709.GK11162@sirena.org.uk> <20150717085434.GO16517@opensource.wolfsonmicro.com> <20150810081001.GG25225@opensource.wolfsonmicro.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: alsa-devel@alsa-project.org, Christian Hartmann , Pierre-Louis Bossart , Haojian Zhuang , linux-spi@vger.kernel.org, Mark Brown , jarkko.nikula@linux.intel.com, Daniel Mack , Robert Jarzmik , dan.carpenter@oracle.com To: Charles Keepax Return-path: Content-Disposition: inline In-Reply-To: <20150810081001.GG25225@opensource.wolfsonmicro.com> 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 List-Id: linux-spi.vger.kernel.org On Mon, Aug 10, 2015 at 09:10:01AM +0100, Charles Keepax wrote: > No as we have discussed currently the driver has no support for > ACPI. I would imagine there is an ACPI equivalent of > of_get_named_gpio which is what the function you mention uses to > get the actual GPIO number though. But I don't know what the > exact function is. You should use devm_gpiod_get() and friends. If you do not have corresponding Linux device node, then it is fwnode_get_named_gpiod().