Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1718393rwd; Thu, 25 May 2023 17:30:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7QrOwIELEtP1mJ6SDfdRO07UpBtWzMHfv7xIslvo2XjRrp2mDwT+3b/qV2ZmT1b39hS/iT X-Received: by 2002:a17:902:d48d:b0:1ac:8215:623d with SMTP id c13-20020a170902d48d00b001ac8215623dmr755027plg.0.1685061023969; Thu, 25 May 2023 17:30:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685061023; cv=none; d=google.com; s=arc-20160816; b=bUVBNF3iuKEdMguwYGKuAsbpOC+rBA9AkomWYdtfS1WMM3lnEYMxE3bmAEMkL1K3Mj h+wJgAzETQuUD7qjx0nALveebjZbouRJehUetWBheuNWMdHj0BRbDPJe5oY8BhSyer2L v3v24NqhYbVY1zcxB9sEJNV66t37EN6mtIGyDp26Bi9Krz+6NNJuRfPhXeJutVwcUluH iDmlfo1nmCAuOxpttVHC1MElMXiL+BNpeleuvhEc/mpohG36qpfIWJ9Oi3FkYUPGd6Ty Sdck5TmSVrqBGdO74usk45Bn6v/eZFElEHEgbcDlD+uo1nk/gJs1AJhOlA+6VpY02pw9 /IAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=KMEdkmN2mqwtyDfXxt5SyyP1iCNO3Bzg7wvQm68Qgfw=; b=UYVHiz9aE41twLVvyCE27APrD1FiTqifJJ9JVUUeBXndYuc42oN2+AjAEZcYN0cSTo QphY9INK8QPA1owV91TMSP2vkGWsbV/SZ6zUlOiWRli7U8gH9q/ZrCWlkWYjIETOcEMd d/QdE2RRJGRPZIr7spZCcgja9ePhJbHGmcyxWhu9rnuwvD8SCxdtXd6gyRvdJDTV5LgT 1yAvlryTOehXwiiDbWTfXSZAmVdpyn+cnqwuC1wx/7X7E0ekGnVJTlRqPCjm2OHA9gKK oqU+OTvcr+60TlxGv0itgS7AvZTtGRMUiYk4vLdKRPFsurCBlv781V8yf4r5IUZ6p6gl Q3kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=MGGWaZL2; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e9-20020a17090301c900b001a80ddd372csi620012plh.43.2023.05.25.17.30.09; Thu, 25 May 2023 17:30:23 -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=@cirrus.com header.s=PODMain02222019 header.b=MGGWaZL2; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241937AbjEZAFB (ORCPT + 99 others); Thu, 25 May 2023 20:05:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239784AbjEZAEp (ORCPT ); Thu, 25 May 2023 20:04:45 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F328C194; Thu, 25 May 2023 17:04:43 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34PNsp8B018449; Thu, 25 May 2023 19:04:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=PODMain02222019; bh=KMEdkmN2mqwtyDfXxt5SyyP1iCNO3Bzg7wvQm68Qgfw=; b=MGGWaZL2V1Bwqc4z1kRH5zcbrnJQPI99nGf7YzMm/IYmukze5UWIB4SBPpbBTzG6vIRn i5ZUBGC3REwwwqCi269pPRapolP7yLtTwh78arIc0vTVFLwoY8zMHS8Afh1f5eMbqZUC UvrzDM//7OIOeLJmPKrt4XFqyR5oybGSlmvSYhYiFGkym4tXRPEuA89uUAVimxc4G+Z9 fn2tr/rJ0uctP40iTyHscJcpBjxlQ0CCq+GJkDwd2UwOVg6BFWHCqBwIU2Vh2ipkXha6 nJrNP51Ejdl5y9Sb+Nev2tn/ntl9/2ObKZEsHq2apWwiiaXp1vx4Fgwha2F04yczcgXp TQ== Received: from ausex02.ad.cirrus.com ([141.131.3.21]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3qptmm7qhq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 May 2023 19:04:39 -0500 Received: from ausex02.ad.cirrus.com (141.131.37.96) by ausex02.ad.cirrus.com (141.131.37.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 25 May 2023 19:04:38 -0500 Received: from ftrev.crystal.cirrus.com (141.131.38.212) by anon-ausex02.ad.cirrus.com (141.131.37.96) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 25 May 2023 19:04:38 -0500 From: Fred Treven To: Fred Treven , Ben Bright , James Ogletree , Dmitry Torokhov , Rob Herring , "Krzysztof Kozlowski" , Simon Trimmer , Charles Keepax , Richard Fitzgerald , , , , CC: Subject: [PATCH RFC 5/5] mfd: cs40l26: Add CODEC driver component Date: Thu, 25 May 2023 19:04:31 -0500 Message-ID: <1685059471-9598-5-git-send-email-fred.treven@cirrus.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1685059471-9598-1-git-send-email-fred.treven@cirrus.com> References: <1685059471-9598-1-git-send-email-fred.treven@cirrus.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-ORIG-GUID: G3BKsgIFTqKLZh8SsGhIQJMn26swAnMA X-Proofpoint-GUID: G3BKsgIFTqKLZh8SsGhIQJMn26swAnMA X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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 #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" }, +}; + 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