Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6106918rwd; Mon, 19 Jun 2023 02:21:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7snJhBVyU8a6bVyxFy112U8nefMDHRyeg5ZaqofWRC3YZgOgG9FHx96f2wCW8Y4hBqh1xH X-Received: by 2002:a17:902:ed44:b0:1b1:9218:6bf9 with SMTP id y4-20020a170902ed4400b001b192186bf9mr7192093plb.43.1687166460871; Mon, 19 Jun 2023 02:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687166460; cv=none; d=google.com; s=arc-20160816; b=Ji558/H6t/io83itGMASEKChhD0By4BKKI3Oev/MdyUHqPPsBCED/PoFozLDPkCmiS MSKfqzJLm3fmKPeIhTBgoGsgGkX55f18tDNlXahBgSbz6+RG0NG0k4EpH6wBR2fEbJuw GUGptMNI8FRsxTNDn2a0lcBWef9W8+HUuoXMHaVCo0IPKd6XW9575SUL12D6KIyPD7jp CdezWMYM0XPMQbMqulGGF/KTyp31eN7k+jCfbLJO6NdhFWt58L81Hq5bP7p1Xe5pSA9R Bb4ms4LwxXa+4jYtnMzXjL0WpXeDD01ZC4FTS5KUdcFMiEme51oNfBf5cWCRFy9/17lo XkIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=5JH2u79XU9FJBiZZx7sz7hvI5PJVGOsuiD1Cda2B7+Q=; b=EvH6PsXdCRVfVvHYtaW+ncB/We5Fc5+qM2NeRx4wJv1O8S5M7QcuDSnWwfo5xJ2hqK KuBsFXB4GNcodfJxbWYgh/fFuFw7wAAAPbxF8l2BvgtF8LXWcnthfEe/ZVEdML6lnjce yoHZccNDO5mhIgIlrLm6XIVNb1Fn4G7LQ3HVJVqCuVaIyBSYatrmUcXgQ2PYltBVShdx MvtKl/SojYWdPKTG2w4AtMxm6n+VDzvVG6JALtlcazgE72wlQtRiEFthyLIR6GMAsZr9 WIJDF2SGSmFg03KVtqgh1TkCl0qb/sj4AQMpg+u617+wredzhutMmxx7Xnc6uyxpiObO Grvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=ogSP1REF; 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 j18-20020a170902da9200b001b3d8ac8dadsi10861619plx.476.2023.06.19.02.20.47; Mon, 19 Jun 2023 02:21:00 -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=ogSP1REF; 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 S231152AbjFSJLT (ORCPT + 99 others); Mon, 19 Jun 2023 05:11:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231209AbjFSJLP (ORCPT ); Mon, 19 Jun 2023 05:11:15 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8AA1DA; Mon, 19 Jun 2023 02:11:14 -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 35J5mUm5002763; Mon, 19 Jun 2023 04:11:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=5JH2u79XU9FJBiZZx7sz7hvI5PJVGOsuiD1Cda2B7+Q=; b=ogSP1REFwha/p5MoyXtk6djzYSizjnb5XoG/UTXcqMzLIJ1RO4fM6vz2X8rvr35wplCv 19lg6w7mXd8juNLp/dvaplzDvq351QoqOkCQmO8rGZnSyGvJaQbDLoEXNO5LZ/8keR1Q wu+j7FV086RP5bxowLDtX4wlTuuajMGo7BZf4+IwtDL29IpPW+lacXfntP102f8By5vE IU0IIWkXoTZXrIocDqgBMq/jQPTKb1OffOp8hYoSjmDaUPOl1TcRVDkzPSZBNcSG5hrc gcudmalxuL4DzlP83GeQF5B5BsyY2JQT6VApdaQM4cMFRKorfyBOZwXfhz7m3PtsuFCz eg== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3r998mhsfb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Jun 2023 04:11:02 -0500 Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 19 Jun 2023 10:11:00 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 19 Jun 2023 10:11:00 +0100 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 84E4011AA; Mon, 19 Jun 2023 09:11:00 +0000 (UTC) Date: Mon, 19 Jun 2023 09:11:00 +0000 From: Charles Keepax To: Lee Jones CC: , , , , , , , , , , , , , , , Subject: Re: [PATCH v3 3/6] mfd: cs42l43: Add support for cs42l43 core driver Message-ID: <20230619091100.GV68926@ediswmail.ad.cirrus.com> References: <20230605125504.2570158-1-ckeepax@opensource.cirrus.com> <20230605125504.2570158-4-ckeepax@opensource.cirrus.com> <20230615171124.GL3635807@google.com> <20230616083404.GR68926@ediswmail.ad.cirrus.com> <20230619083005.GN3635807@google.com> <20230619085244.GU68926@ediswmail.ad.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230619085244.GU68926@ediswmail.ad.cirrus.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-GUID: JbY1FYWJr3mYykaI4Vkm_JGdmIMtrazk X-Proofpoint-ORIG-GUID: JbY1FYWJr3mYykaI4Vkm_JGdmIMtrazk X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Mon, Jun 19, 2023 at 08:52:44AM +0000, Charles Keepax wrote: > On Mon, Jun 19, 2023 at 09:30:05AM +0100, Lee Jones wrote: > > On Fri, 16 Jun 2023, Charles Keepax wrote: > > > On Thu, Jun 15, 2023 at 06:11:24PM +0100, Lee Jones wrote: > > > > On Mon, 05 Jun 2023, Charles Keepax wrote: > > Can you have a little think for another way to solve this please? > > > > I will have another go at it, if memory serves the vague options > were: > > 1) this approach > 2) some sort of horrible #include to put the defaults array in > both modules, although I would really prefer to avoid this one. > 3) dynamically allocate the regmap_configs so those two fields > can be filled in with non-static data. > > If I fail to come up with an option 4 would you prefer 1 or 3? > Well or 2 but I really would prefer not to do 2. > Well or just leave both in actually I guess perhaps that is simplest. Thanks, Charles