Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2069682rwd; Fri, 26 May 2023 00:57:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ71FhWqJtzIiFH50Yt/ZmpfKoPTyHktZ4FiDx3GTFhk/cLqJANbYHgZycG2Lx/iNOv4VMrj X-Received: by 2002:a17:902:9a96:b0:1af:d213:668c with SMTP id w22-20020a1709029a9600b001afd213668cmr1636678plp.12.1685087868331; Fri, 26 May 2023 00:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685087868; cv=none; d=google.com; s=arc-20160816; b=hrujJT94gj8ap8UZhIBTdFUSy7BY6nsS6S4uNFT/23EIAXGIHJK9PsScCOWnzpaRwA Bu3ipy30AAGce4YqYOLo0I1UpwdvVlVvguOhPS8pbhhxPIZrYWFpQnU8S0k1fGLz14K8 4xPVarUy8nOEvUF+XgisTrD7thfTfwccK38gLgW5o+hflh5EivmTgvgOORd+uUNkThm2 rjeX1ltuv1m3+MgY9Pv3r2KnKaPteile+PtDjVGI5a4fHlh9i04aclFKprAdo+p8dKt3 U+Ldl/c7mLjIFWWERzeOjsPRSzyGeK9NQHIYZter6fEP+/zRT+BO6ZrBUrl4QZ8pzf2+ g64g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZQ+9psxMmhVIlbZnioV3yDbYucsLrrabDxU+hRpgfw8=; b=hx6eQLI9AbE+h5SckGgN7fPizA3qblbwlJU7mKapkqKM6RZketXg2MvUsR89EHPW8s epPFNPnUVlHC12KW2Anjy4e0D8Odv5oDNXcfzrroVXbt+N3vnS1bOVh/lnscg4HDO5FH sMYOQtS3OI1rnf4QF7ds7Y6XxiEWatZb2FyVCCPffm1Ej1rumwq0J8RBYJ9dwsfZzqDM 3bJ8eF3/QJELMRxi+0uPHcI3d/Gn81932awjqClkFSzYBid17Fyy0WNB5WF2j0E4NoIb Ib+nuHdWSsQqIBVSBZ9DL8ZOKLX6Ca+J0tQQUWb7mzOvCW36mbnxltZ/QzV9iD5SjBM+ qWZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="DSvxXar/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2-20020a170902ee4200b001b0179ad15esi308247plo.342.2023.05.26.00.57.34; Fri, 26 May 2023 00:57:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="DSvxXar/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242323AbjEZHzC (ORCPT + 99 others); Fri, 26 May 2023 03:55:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242595AbjEZHyy (ORCPT ); Fri, 26 May 2023 03:54:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0AF812C; Fri, 26 May 2023 00:54:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7B3F064DBE; Fri, 26 May 2023 07:54:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51903C433D2; Fri, 26 May 2023 07:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685087692; bh=r/fk7ywn0jZ7exIpVJ5GqN+idYj8JSycLJBNBKkY+To=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DSvxXar/RZIH1FoOJc/s0k6Qa+gNIwPaH8Ex5okX01QXiK6uVMuX8Om/62If8fUAE ovlZKw6ujgSzuGfOdXj/7WsXOoX9EExtizR1AKOpG6kBpTvsQ+AQm0Z3wxxgwYrFhG J0wBcoH9smDqA4hgRo3ygx/Gr5APCGW+Friptd4yEC3ELF3HHeClvYMs4GuUIsq8PR 9+rnI6UYkYfFviUuHSlezdK+URIy3tkQN3tTkF1d3Fy821oq7EGlmN06NxPajy3/AM 91riAScRnESGK++T/t9HJRiNIvz5tottLQD0IaFrgSrmchDo4x/VwzJ5XSua4hMkCO J8RYE48HQ3a7Q== Date: Fri, 26 May 2023 08:54:47 +0100 From: Lee Jones To: Fred Treven Cc: Ben Bright , James Ogletree , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Simon Trimmer , Charles Keepax , Richard Fitzgerald , patches@opensource.cirrus.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC 5/5] mfd: cs40l26: Add CODEC driver component Message-ID: <20230526075447.GA449117@google.com> References: <1685059471-9598-1-git-send-email-fred.treven@cirrus.com> <1685059471-9598-5-git-send-email-fred.treven@cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1685059471-9598-5-git-send-email-fred.treven@cirrus.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 25 May 2023, Fred Treven wrote: > Use MFD interface to load the CODEC driver along > with the Input FF driver. > > Signed-off-by: Fred Treven > --- > drivers/input/misc/cs40l26.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/input/misc/cs40l26.c b/drivers/input/misc/cs40l26.c > index 12c29cbd4ff0..35d15a6c2230 100644 > --- a/drivers/input/misc/cs40l26.c > +++ b/drivers/input/misc/cs40l26.c > @@ -13,6 +13,7 @@ > #include > #include > #include > +#include NACK. Please do not use the MFD API outside of drivers/mfd. > #include > #include > #include > @@ -2136,6 +2137,10 @@ static inline int cs40l26_worker_init(struct cs40l26_private *cs40l26) > return 0; > } > > +static const struct mfd_cell cs40l26_devs[] = { > + { .name = "cs40l26-codec" }, This is one device. Thus, not an MFD anyway. > +}; > + > static struct regulator_bulk_data cs40l26_supplies[] = { > { .supply = "VP" }, > { .supply = "VA" }, > @@ -2275,6 +2280,12 @@ int cs40l26_probe(struct cs40l26_private *cs40l26) > if (error) > goto err; > > + error = devm_mfd_add_devices(dev, PLATFORM_DEVID_AUTO, cs40l26_devs, 1, NULL, 0, NULL); > + if (error) { > + dev_err(dev, "Failed to MFD add device %s: %d\n", cs40l26_devs[0].name, error); > + goto err; > + } > + > return 0; > err: > cs40l26_remove(cs40l26); > -- > 2.7.4 > -- Lee Jones [李琼斯]