Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp260909pxb; Mon, 25 Apr 2022 09:30:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkuQF2wydVl0OhTK7R6MkDqCFsz1TIJDwmTdcOcqAOav+aRCerTE3ZpdiX/AXUnIqSOSsY X-Received: by 2002:a17:907:3f91:b0:6d7:16c0:ae1b with SMTP id hr17-20020a1709073f9100b006d716c0ae1bmr17054102ejc.74.1650904242333; Mon, 25 Apr 2022 09:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650904242; cv=none; d=google.com; s=arc-20160816; b=vZuGSJWDWFMjUU4uCtyUUYwYHIpJ0rVE70U/dQ5isZ6ZntJaKI4VHyxC1bsoLE8kFj MDniXpixMkCfZ3bKzntKy3SysMouliYNV2D2JoyEYwoF3qEYzV3NAl73GnZZWUnB7IZf OBVABGNnd0AYJTNiHgqIPN3Gy/oP4BcJdu4Y4D4O9PDEvRRlG39UifhHBl8j9mgLfYtK nvbDJyo66PVAN1F+fMFpoiXsj15s8mur3vt3WuEGs0mZlQtOL1XtAsYwuF3bZvPyz3IM FPf1Y1IxrampU25vPkFR2i/rHTpBn7X3dC29+G6PYREgM8Gtl/D75fYrXFuZwq1z6cBT xWdA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oKhlsprygByCX+zy4F9xeFbHqu1t1rwC+Ek5sRHc7Hs=; b=Q4miTXNz+bbx0CSDHTPr9h+ESbLN2DqmPyqTSjGPE/jOyvvS08q+doVbj2P7NC9MzG mnv0VGlH3o95TCoTZr+WyYeWkgQxkCzg2AyEA0hsnPL2hvMMRqnc9Oc7XeRlHyo0F4K/ /a7QppEiyxENFK80eiCz+USZyGtBGEutFq/wKjvc3bQQxQuP1A13b9JNjVupD2l3vOYC VLSdSxVa+YM8F2FN53hO1xfBuKPCY4ewIn4gsfWCt2wKEBw95dp5Sr2gzsVDRVHPAzO5 6uAMcYImCtttvsnYu6atE7yMacqdrP0ksC86Jbu5ICC8Fiz3LY/APP/SFE5dUIqhGPoE mquQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QKsLeTI7; 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 le2-20020a170907170200b006f3a4568600si965296ejc.685.2022.04.25.09.30.11; Mon, 25 Apr 2022 09:30:42 -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=QKsLeTI7; 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 S231475AbiDYNaH (ORCPT + 99 others); Mon, 25 Apr 2022 09:30:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235641AbiDYN37 (ORCPT ); Mon, 25 Apr 2022 09:29:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABF443FBEB for ; Mon, 25 Apr 2022 06:26:55 -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 49597614EC for ; Mon, 25 Apr 2022 13:26:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A87E4C385A4; Mon, 25 Apr 2022 13:26:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650893214; bh=a+0NZEJ8nHXpJbL0is/cZVV2TUWQq/Qh4MN4veAvkSI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QKsLeTI77/UNLHRaceL0QDzlvbwugACqZoCzXLlKffa6ODqQv3cv0xRsdZ/W8MsH7 sDHXDHiplW+hnkQge47OP9CZKIHGxSkRicTPNGKU4Lm0epvjzJznLDqW6mStMxvEmx 8GxGeZwuiIp2nGPXv6BcVlXd3Br0qN+7Rh027E+HSkw4ZFnf82ANF18+VHY0BJajJ0 7Vd/UPnAf04s2t85JfcDLetnS3lflynNd7NlSi1J+XlcjEs0Dr/CoHEqLp8Y5ugzsd Z5/q2H1mpWN1iRZ/wwYLq/khn9HDEfr1vd0DPWjJPdZTHCcszq3A/BesN2P1oxSG1H ZcVI/FGYjhELw== Date: Mon, 25 Apr 2022 14:26:50 +0100 From: Mark Brown To: Stephen Kitt Cc: Liam Girdwood , Wolfram Sang , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 7/7] ASoC: tpa6130: use i2c_match_id and simple i2c probe Message-ID: References: <20220415160613.148882-1-steve@sk2.org> <20220415160613.148882-8-steve@sk2.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="T8rJwMde3z+laYB7" Content-Disposition: inline In-Reply-To: <20220415160613.148882-8-steve@sk2.org> X-Cookie: Last week's pet, this week's special. X-Spam-Status: No, score=-7.7 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 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 --T8rJwMde3z+laYB7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 15, 2022 at 06:06:13PM +0200, Stephen Kitt wrote: > As part of the ongoing i2c transition to the simple probe > ("probe_new"), this patch uses i2c_match_id to retrieve the > driver_data for the probed device. The id parameter is thus no longer > necessary and the simple probe can be used instead. This breaks the build for omap2plus defconfig on arm: /build/stage/linux/sound/soc/codecs/tpa6130a2.c:322:11: error: initializati= on of =E2=80=98int (*)(struct i2c_client *, const struct i2c_device_id *)= =E2=80=99 from incompatible pointer type =E2=80=98int (*)(struct i2c_client= *)=E2=80=99 [-Werror=3Dincompatible-pointer-types] 322 | .probe =3D tpa6130a2_probe, | ^~~~~~~~~~~~~~~ /build/stage/linux/sound/soc/codecs/tpa6130a2.c:322:11: note: (near initial= ization for =E2=80=98tpa6130a2_i2c_driver.probe=E2=80=99) cc1: some warnings being treated as errors You forgot to move probe() to probe_new() in the driver struct. --T8rJwMde3z+laYB7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmJmoZkACgkQJNaLcl1U h9BefAf/VDPZ0QQrR6OeJku+HULqwEWbUZpAa/ixPLJa2dPE1oZZDRB2TYdUD1Tt NccZ3n8Btpt80ic08sQeSAyNMwy35WKJRCKtLQmiXWMQ83XNO+vc0DBAVYxYYZfH ijjKNYUpNac0Zf1m0hSRdIqsAFoQJ1oMWxIARx5p0SU+RpZqvOesbqrxwsu4ll/Y EmCwRTJDfFd83r6iz5MpTGk3i4mbQxznMVwCT8zvtAdovGToy8OWD8veBk1Kbmje cs4eelWdRW2w4/uzV2ljKbyvvwX8defeanZOCxt94moqUjVr5PA/VBj4Yofmxo/1 yJ7li4d0QB/Jcs/bJzUZtcb/19Hdvw== =g1Ku -----END PGP SIGNATURE----- --T8rJwMde3z+laYB7--