Received: by 10.223.185.116 with SMTP id b49csp6107160wrg; Thu, 8 Mar 2018 01:48:02 -0800 (PST) X-Google-Smtp-Source: AG47ELsE1+9gaFlfKgE67DYW2135pD0rUptuTQspnUROc//mg8aymePtvdiqVZ/685XSKGwjiYQ6 X-Received: by 10.101.66.76 with SMTP id d12mr20492100pgq.234.1520502482590; Thu, 08 Mar 2018 01:48:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520502482; cv=none; d=google.com; s=arc-20160816; b=ZAbMAMO7J0zd+F8WI2+swj+qt2+El5wa1oHSUKd4UIIq2oVCiZGoZTfWE20M1yohU8 4IBbBPnaN1ubziF2AVLG9mfXRpbouF/kouwgjIvQw/ejTX/d13J+kHuR+hSBNw5os9fE DlPFE2RAObDrwAGajbiQqrtgZqs+/g4z+eZXsZxWAyEPeSvPGvqnlNyXGB9LzRhUlFOy IhrQ8JnbFcjcf4AR320b2GvQDOY3FpMC/usc25KjjQR6MBu8ctk6mxFvCzDENfnm5nHz hsvGo/ma1f5xxEgXoyfuvq0hQRvvbise48IlosJLDZCttAdWqIPi8eemMnLFYQHRNg4g OecQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=7eURsaWLLqz51AWoqZmAgZKPENi0YOWrGL7V30vEkW8=; b=E1AjPIowXysPU3bWDw1430JexgjKWxXVIl0jF55SWfOMll2tYXzV82w5cJp8qjcDMp oGIrGw+mmF/7EYL+Vyt8nTNSV2qwooO1JNYcGRUjWtqJ7eFnys4vGpF3bxr/YJORiRHe sn+iF3Eo0GBjBuzY5vQNFqUl0pRVPl86uJXK6dNeqLdG14JfKrZ1QrPLAPetlfAf26F6 35bnHshb6OholfGGamWNx1plHjSzdwVH0YHwDZ6vFcMrnodfbywMwXozqW0OM8UPZ5N8 RFoslA6wmKg2Ke6PNO9vvZaGB5SHjFGQL48UnR9neGE9547mTLypqh+THeM35ubWwLQr choA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si12679918pgn.642.2018.03.08.01.47.47; Thu, 08 Mar 2018 01:48:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755539AbeCHJq6 (ORCPT + 99 others); Thu, 8 Mar 2018 04:46:58 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:57322 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751355AbeCHJq4 (ORCPT ); Thu, 8 Mar 2018 04:46:56 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id F10C12607E8 Date: Thu, 8 Mar 2018 10:46:52 +0100 From: Sebastian Reichel To: Lee Jones Cc: Liam Girdwood , Mark Brown , Rob Herring , Tony Lindgren , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: Re: [PATCHv5 3/5] mfd: motorola-cpcap: Add audio-codec support Message-ID: <20180308094652.qg4atjw5c3hayaz3@earth.universe> References: <20180223200254.25685-1-sebastian.reichel@collabora.co.uk> <20180223200254.25685-4-sebastian.reichel@collabora.co.uk> <20180307163211.rytfli5tb47yhtug@dell> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="apgfiynhdwpmzzxl" Content-Disposition: inline In-Reply-To: <20180307163211.rytfli5tb47yhtug@dell> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --apgfiynhdwpmzzxl Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Lee, On Wed, Mar 07, 2018 at 04:32:11PM +0000, Lee Jones wrote: > On Fri, 23 Feb 2018, Sebastian Reichel wrote: > > +static const struct mfd_cell cpcap_mfd_devices[] =3D { [...] > > + }, { > > + .name =3D "cpcap-led", > > + .id =3D 4, > > + .of_compatible =3D "motorola,cpcap-led-cp", > > + }, { > > + .name =3D "cpcap-codec", > > + } > > +}; >=20 > With none of the entries containing platform_data /me wonders why you > can't still use devm_of_platform_populate()? Because devm_of_platform_populate works with compatible properties and cpcap-codec does not have one after I removed it for Mark. -- Sebastian > > static int cpcap_probe(struct spi_device *spi) > > { > > const struct of_device_id *match; > > @@ -260,7 +308,8 @@ static int cpcap_probe(struct spi_device *spi) > > if (ret) > > return ret; > > =20 > > - return devm_of_platform_populate(&cpcap->spi->dev); > > + return devm_mfd_add_devices(&spi->dev, 0, cpcap_mfd_devices, > > + ARRAY_SIZE(cpcap_mfd_devices), NULL, 0, NULL); > > } > > =20 > > static struct spi_driver cpcap_driver =3D { >=20 > --=20 > Lee Jones > Linaro Services Technical Lead > Linaro.org =E2=94=82 Open source software for ARM SoCs > Follow Linaro: Facebook | Twitter | Blog --apgfiynhdwpmzzxl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAlqhBnsACgkQ2O7X88g7 +pqSmBAAgX8CzEdb4wxp/qgqjQaEcdjL7sz7MkodTGO2PkqWChQCuWYK+IDa2k36 KcJ+YZ/cEw0QgD1cmMz+swhz9UrvDYriqsBZ0A4Bcu8Tbc0JR12QIQEjVWYrvhQi Tj5nMbsF7t70J3Eg6i3Eorkx5ipyON5L/Uu08Mog8xZOK46aAeG5W6K44pg6GJ8v ov1EE7ubCZIL1gPXOkjXjbl9uetAAXWDYvKURSELm+EeRtrvcfB8iSQy8IF2QPOh Nk1p+eRuOTw2ZCBypqDF8o1TGciKLeS3RRGN4hhCV+j+EDc/tmIY/a70MqaVqywh Vw514RImpP6B5X2UZqxZg7SSg1ERx2CYPNE7ctZCDpGg+jIJ5YAHHzyJlcTJQHl2 AxEQF6sLgFfPp/f2wCAjf5wlp+a2SkWlKfM34JPT1+gUNW8Tw/lUwuAVBmFBTOzp 1DOGROzoeVwrKINAueyzf3FHyuGZ8f60IKMyU3kOwJRaOK/tww2KcltdilcjVx3V ESlbEB0XuLn5mbgC61JuCagsIFIBc9d6OTGHfar/DKU2+oE5Kqg7rW4SSwGThEim /ivMveujAR7c9NWgkyukzeiNG1o5XYj74c9AUljqBKdnRWTbIkmNwjlcQgHl7OxR lhVfMGJu0EvVbcKBoQXeM0W3YoibCRZwx2Vabzc/d1zIEK+O0Ww= =dxXu -----END PGP SIGNATURE----- --apgfiynhdwpmzzxl--