Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2054170rwi; Tue, 1 Nov 2022 03:19:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5usT+X62zGXMgJ9Al+Y/UgeTjYAHOWhil6C+KNY8raeiDKAfqYBJClAZhtIapP5Bbvwsg4 X-Received: by 2002:a17:902:e74a:b0:187:2039:5754 with SMTP id p10-20020a170902e74a00b0018720395754mr10355331plf.103.1667297986424; Tue, 01 Nov 2022 03:19:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667297986; cv=none; d=google.com; s=arc-20160816; b=HuS9wes82r6ybDragS/ZhVU7RxAxB8nMWKm47RcNBqi17bhxjdyTIgJe40e9Py4u/7 I7D+Pk2ftRzkL4P511K5A10IZa/Kf9Mjvr7Z2129t45jOyp2g14aH9Y5hiG4g5dZR0D1 TX94KCiNrsXXYdVc/R4YHCxUk962wiGiCC9boGHLnkM+XMfv6diF2XbJjvPJZOkbM4m3 DbUf4bOfaw2ykZqxbI8IMXOkXJv4w56n1ADZ5ClvJbFW6RN0/tAmvtmcAtx9Mrj6dSt4 KKxKtpz5iQBDt6Tdu6bKiLpwhFQnSLER1MjnEqWnpDh+S/lJTFPAfSUIYJ+z6L7TZwNI 2Z1A== 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=kr6z9lQxoGcTz2dnir8DYxHyHWTDYYd2mshXwPWC9qY=; b=col2cAfZdYvETUFBBmrIg3GJt3ulPKkR4jNhkhnNO0gslK3EHgnSTOK531G95olDCl /IbfZJz8nCD6tN32ZFn0CpgGz9x+gFFJM8DSTopjolwDwKXCtrOzGbazg2KQM49J8PEO jwKnPy5FtgMkn5y4/Fo172GbNlM6u6uK+J34YMWLUkKfo1+w+qhNBbwj9psfRMg20pBa HHD9ZBDDWNGzBX4+g46jBBn0HbBVlaje4cInFDpy/+ibKPzlAfFM4AlzN98Di8PFpWuz lYLVr2zeNe190pjGU92R59KgiYum2fHHChLPGnGFPwY/9PYv9U2dkaV1suO6qBMObFJ8 P75A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=AhDSKoU+; 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 v3-20020a622f03000000b0056d8f42a69csi5151741pfv.145.2022.11.01.03.19.33; Tue, 01 Nov 2022 03:19:46 -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=AhDSKoU+; 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 S230466AbiKAJlX (ORCPT + 97 others); Tue, 1 Nov 2022 05:41:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230142AbiKAJkN (ORCPT ); Tue, 1 Nov 2022 05:40:13 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5178B19039 for ; Tue, 1 Nov 2022 02:39:57 -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 2A14vYJZ031601; Tue, 1 Nov 2022 04:39:03 -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=kr6z9lQxoGcTz2dnir8DYxHyHWTDYYd2mshXwPWC9qY=; b=AhDSKoU+eCTbc65qY3gE6zuf1pmJVkNnrWtRCKScimXiWUZd5ZCmURJu1meJ/xnAtox/ QiHiwz7+9cBWgibaKYg9sH00pq1UmrcP5FMe6isbos7vlQDBReW7d5FMpysiKc4ks382 RvBaK8oFu6WLN3cTopi5ioJPCQbv+oQ6sYEgHpTlQlPYMXBIT67mmcwN9WaZjeTaZfcJ wvxCLEJ0d7HLVdBZcMY6AjXeBHsyOqwmw2rn2mMpKuolMnRIBvCUDpZ83zORdzeSeuyT 8mvHHXPaXDIBvnJWbm40xZSnA/uQQt8jjNGOT6PVRWTiGFXTCKdawFIq5XdfZqoSQpZt kQ== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3kh0kpk5uh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 01 Nov 2022 04:39:03 -0500 Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.15; Tue, 1 Nov 2022 04:39:02 -0500 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.15 via Frontend Transport; Tue, 1 Nov 2022 04:39:02 -0500 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 1168DB06; Tue, 1 Nov 2022 09:39:02 +0000 (UTC) Date: Tue, 1 Nov 2022 09:39:02 +0000 From: Charles Keepax To: Peter Bergin CC: , , , , , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , , , Subject: Re: [PATCH v3] ASoC: cs42xx8-i2c.c: add module device table for of Message-ID: <20221101093902.GH92394@ediswmail.ad.cirrus.com> References: <20221031203723.168177-1-peter@berginkonsult.se> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20221031203723.168177-1-peter@berginkonsult.se> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-ORIG-GUID: d0wAoJWUuyBJYk_gULEmugXMUaF8Kiyq X-Proofpoint-GUID: d0wAoJWUuyBJYk_gULEmugXMUaF8Kiyq 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 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, Oct 31, 2022 at 09:37:23PM +0100, Peter Bergin wrote: > When trying to connect the device with the driver through > device-tree it is not working. The of_device_id is defined in > cs42xx8.c but is not correctly included in cs42xx8-i2c.c. > > Move of_device_id table to cs42xx8-i2c.c. Get cs42xx8_driver_data > in cs42xx8_i2c_probe() and pass as argument to cs42xx8_probe(). Move > error check if no driver data found to cs42xx8_i2c_probe(). > > Signed-off-by: Peter Bergin > --- Acked-by: Charles Keepax Thanks, Charles