Received: by 10.223.185.116 with SMTP id b49csp6112402wrg; Thu, 8 Mar 2018 01:55:27 -0800 (PST) X-Google-Smtp-Source: AG47ELtzVpktr5LkcfEmNpkEhnAYOo1jThODyHnamdcu/gWM6sjiujVhWxIXKy22nJ1srq7d81qM X-Received: by 2002:a17:902:b597:: with SMTP id a23-v6mr10435530pls.156.1520502927351; Thu, 08 Mar 2018 01:55:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520502927; cv=none; d=google.com; s=arc-20160816; b=hDjq7K9UXcAjA4krH5sbF+e86vTKg7aitQ/mGxizB/6z/IftsyxdD1XTF81i5ldXUQ KX2dpm/eF+EtXXH3+MNF2rqQKuhdTAfgM58ZWAnjiwqyML9a+/gsTvY2NRK96lqe/5aU njZgMjLccsGVLRL4+gTNwkjewViugTlQbyCDYdZLNugRGenAYzXbEal139YZQ46Xe/+d lG4IimnG4ZmVQzn9/Atu0bI/+nZcXUtg87wSixjBgkZsMbKr3JGUtD//PMkTcAJZI0f6 ofjSrtDiWdUFfgV9LXoMl/NQwrwEzIexwZ0XGmmjLFT07PFEdMu+CshEPDkNupMhAGfD o/mA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=ArwrQkM4AzT/B+BWiH1gO4jfEj7VkoZ0REnXgxWv6GQ=; b=JCoWvPEz/D5ow6z2+YgLfX4bFERWZt3P9D/QTxBljdDn+6OyUEyD6VNMWz7to7w+m+ R/CM/6OAuRr2ebBgWtdEsa39nFbAuYi+Kq0RWJxIGUItrzyoPqQZpQ3f6ZHJEn5UD3Wl j8GYIqozBWzPizdSi2YkTOi81SFhlaHhYBoP6zr6ubv/6PP4f/ajMIl5inmAJK1uBpvn P0n+toM6C9xB6rr6vZHu7XoNPNn9jLZrlcg/p+8595RuPJFAtwtJQPyvBJT2pG0/P1y4 XSHC1/DvicZYKUe2zXURHuO9wn57J9K5F96acJ4Rzf8NHVTy2BZ/S4Tu0z4E6p0jKELr wV5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jHbvn8pK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b90-v6si14359356plb.819.2018.03.08.01.55.13; Thu, 08 Mar 2018 01:55:27 -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; dkim=pass header.i=@linaro.org header.s=google header.b=jHbvn8pK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755733AbeCHJxX (ORCPT + 99 others); Thu, 8 Mar 2018 04:53:23 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:53173 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755717AbeCHJxT (ORCPT ); Thu, 8 Mar 2018 04:53:19 -0500 Received: by mail-wm0-f68.google.com with SMTP id t3so10073251wmc.2 for ; Thu, 08 Mar 2018 01:53:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=ArwrQkM4AzT/B+BWiH1gO4jfEj7VkoZ0REnXgxWv6GQ=; b=jHbvn8pKAW92ctOFfEGGe/fanKrKAmT+zFyCQPUqrOXbLEiNFZCxl+B7WEme5P5rW2 nfZD58NA/kULCGmjDNosA7bsKrzgnNgKiLtUee9MvagdMOJTdFj2gZMEIJb9QGGY7W9T JynRAImC8Mdb4ewjlSDfDaIN0E8BXKQQoPhAI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=ArwrQkM4AzT/B+BWiH1gO4jfEj7VkoZ0REnXgxWv6GQ=; b=Usln/99jkiddlEQ9acnYknfRIpARtmLukCErY0JoIxx3K/QkLK7d09hxLPTdnq4h6s /i+lNM1cIPCtTIzgi2IbfXDHho3U68kzqgHuMJD3lEYokXmhHcoLj7AMkyPtdQw7RavT +AgCZncvzgO07PoUsm2+wCU3Ph+OeotiDqb2ETRLkBAIcn4nv99DHLmXPDKPP+g95jCL UEaSRYTde4Qf2sZDF+qHEPY2PNjEayi4Eku+wBJrNMwGNNE0mqHNodnrybv1VHeZu7Aw zHKKkfbwUnPmyN5mqRYXWEoBBnv6+vtGl8TiUCIvkrEgoJ0Si6a+x5laspWdQsL6+M5A J9zA== X-Gm-Message-State: AElRT7EPwDXLJ9hCl4nuT3rCadjJs0+yEna60kp6hWeU9YGwizcUELyR JcW3ZXZXPkgnxArKksvsH9TQ0A== X-Received: by 10.28.55.129 with SMTP id e123mr16939659wma.78.1520502797766; Thu, 08 Mar 2018 01:53:17 -0800 (PST) Received: from dell ([2.27.35.218]) by smtp.gmail.com with ESMTPSA id n127sm8373780wmb.5.2018.03.08.01.53.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Mar 2018 01:53:17 -0800 (PST) Date: Thu, 8 Mar 2018 09:53:15 +0000 From: Lee Jones To: Sebastian Reichel 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: <20180308095315.mpcmx2ob6yhsnrm6@dell> References: <20180223200254.25685-1-sebastian.reichel@collabora.co.uk> <20180223200254.25685-4-sebastian.reichel@collabora.co.uk> <20180307163211.rytfli5tb47yhtug@dell> <20180308094652.qg4atjw5c3hayaz3@earth.universe> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180308094652.qg4atjw5c3hayaz3@earth.universe> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 08 Mar 2018, Sebastian Reichel wrote: > 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[] = { > > [...] > > > > + }, { > > > + .name = "cpcap-led", > > > + .id = 4, > > > + .of_compatible = "motorola,cpcap-led-cp", > > > + }, { > > > + .name = "cpcap-codec", > > > + } > > > +}; > > > > 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. Sorry, I missed that conversation. Why was it removed? > > > 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; > > > > > > - 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); > > > } > > > > > > static struct spi_driver cpcap_driver = { > > -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog