Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1274548rwb; Fri, 18 Nov 2022 15:50:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf48JbK86axuQJXbwedQhyhLM9w5W+zQObh88xO6dZ0urc1+x0PIt7I88tCwuZFi1hgfMml7 X-Received: by 2002:a05:6402:2217:b0:468:fd95:eb4 with SMTP id cq23-20020a056402221700b00468fd950eb4mr5931955edb.230.1668815448891; Fri, 18 Nov 2022 15:50:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815448; cv=none; d=google.com; s=arc-20160816; b=VPETbptt2vkVklJVF6J8Py9hc/kR2aW8+HrR9jxfpwlW47XXuq0FnH75axaSK3QlGk fu+aHUcj5Ut4uK8W9WtMA92NccwKA1ExGhCuqYyqtyxuhKDECRYdkVNYLOIdSe9VjxC8 MMdrnUCtw088rR2YQkMxyhWc8lFkDdmbMc43b2a1FYrJGT2MswvnKUlbNMVoFtpZXF4W aHs6wyiT03R6BCR2wkCnDBGxpZbuNb26mg6B67g3IMZXaK/F+bzsnShu0kosu+7sFd3z ys3i46lOGNCGHEzD0d9AstevhZbb+rHwx8gOZaB+oyteuSOyiOBnwUf3xP9FoPtCH9Hl KPKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Jeg5OPbcU8Um2n3zzZ8ZeF9Qwca653OFnBoiSDNreoU=; b=hGmafHTRRcRCNFOwfVKqzqb9bna1FEVD+Q0eI9D5FBGLzp7ji1lfl/oklyeC+5LRgl kFIkOPu04F6SCslr9HEay8Zv5jycG/zv7d4azc0mF0i7yf8V67LmQWLWeYh/Sosl/VP5 jTcI1+CrHGRm4D6uqGKphilCMXRsb1GvcY2S7p7w9MG143IY4rAkln/4nsdUxNUIdpXB Z9LQE5qbkW/nHzvCufoLCVGgHg/6cx+o2pmaQEKvLbmtli4gIoGoU3Rl1+iTIquzfCNY MmfECryyR5LawGT6kOc6Mfb6wFCjevBKEJI1mdKmGsrcg7Et5H0ftmNJeUTyVh/5jUqE 8k3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flatmax-com.20210112.gappssmtp.com header.s=20210112 header.b=jCNJD4bx; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g3-20020a1709065d0300b0073866c0672asi5514542ejt.73.2022.11.18.15.50.27; Fri, 18 Nov 2022 15:50:48 -0800 (PST) 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=@flatmax-com.20210112.gappssmtp.com header.s=20210112 header.b=jCNJD4bx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234926AbiKRXSY (ORCPT + 91 others); Fri, 18 Nov 2022 18:18:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233093AbiKRXRy (ORCPT ); Fri, 18 Nov 2022 18:17:54 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE4E77DC92 for ; Fri, 18 Nov 2022 15:01:12 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id t17so5044098pjo.3 for ; Fri, 18 Nov 2022 15:01:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flatmax-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Jeg5OPbcU8Um2n3zzZ8ZeF9Qwca653OFnBoiSDNreoU=; b=jCNJD4bxBXoCXfG8DydsvITI5IlXvVpTpnrkGNFZawmCwvS2ZrwWB4Wf6zb+WDzMeX xcvnxHhjYt/XM0EvmLuFLhsQ4wJCuEQwA3QkYC4uCLRBWz6Yn0VakY0fSUUEu42Roovz FztGlZfDJjISJmGtoaknWeACdznB9bKZeNbo3W0+7eQmxPmSQszj+p9rVR1uuqamXj7x L2I6/5A8WKwo4LXOFXskapC6KygVCKGe7jLeANfnLKlTksH6JCmkuan0R3MHH9bJfTUE MHwl0hXqnvg0MetsN2GRsff/sQBkup8vsN3dGmx6oszthoWzPqi59uf6vvp1nvb5Rhw1 tgPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Jeg5OPbcU8Um2n3zzZ8ZeF9Qwca653OFnBoiSDNreoU=; b=I5G5KNUKeskQ+FZoyIgSx/w2MLv6EZ2Dw88CtR4gUNGeSLHHNdbshMTgwILsXCV1s+ r1427JwEdX9IsI01Me418NGr162BUf5njqQEYlQUG/KY1+7YllWrmQSsByIruORPvtUe 3fOzQXyhi94h/o9vnzL5FeC6vxLpYzuNiD9v2vNhGKjE1dgtMu4fHPtuIkqko202yQJi 2CbvpozEiGzYZs+il27dKBZ4lw/78sGP9hBUOvsX+t8lCzfVnlBu6qSDcuFgjmv6xoi8 uR/l/cRm2VZaVaCmVTZL/PttkcA9E6opG0sp9LIxU+5fXga3ZTj56WG5Lcy6+Wb/r7y8 Wp+Q== X-Gm-Message-State: ANoB5pn5tsazalhNzAX9JF+26eJiqbak0tkcvat0sgkCKYIpayYY+c/z 6KbeJg8jTdmj1IXAEqxM13Nk6Q== X-Received: by 2002:a17:90b:4d0b:b0:214:1329:dec7 with SMTP id mw11-20020a17090b4d0b00b002141329dec7mr15978573pjb.91.1668812472181; Fri, 18 Nov 2022 15:01:12 -0800 (PST) Received: from ?IPV6:2406:3400:213:70c0:9df6:7e57:88ce:1bea? ([2406:3400:213:70c0:9df6:7e57:88ce:1bea]) by smtp.gmail.com with ESMTPSA id u71-20020a62794a000000b00562019b961asm3696850pfc.188.2022.11.18.15.01.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Nov 2022 15:01:11 -0800 (PST) Message-ID: <6f431abb-356c-b057-2784-6b5f165a2a2d@flatmax.com> Date: Sat, 19 Nov 2022 10:01:07 +1100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH 603/606] ASoC: codecs: src4xxx-i2c: Convert to i2c's .probe_new() To: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Mark Brown Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <20221118224540.619276-1-uwe@kleine-koenig.org> <20221118224540.619276-604-uwe@kleine-koenig.org> Content-Language: en-AU From: Matt Flax In-Reply-To: <20221118224540.619276-604-uwe@kleine-koenig.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Reviewed-by: Matt Flax On 19/11/22 09:45, Uwe Kleine-König wrote: > From: Uwe Kleine-König > > The probe function doesn't make use of the i2c_device_id * parameter so it > can be trivially converted. > > Signed-off-by: Uwe Kleine-König > --- > sound/soc/codecs/src4xxx-i2c.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/sound/soc/codecs/src4xxx-i2c.c b/sound/soc/codecs/src4xxx-i2c.c > index 43daa9dc8ab5..27026030704a 100644 > --- a/sound/soc/codecs/src4xxx-i2c.c > +++ b/sound/soc/codecs/src4xxx-i2c.c > @@ -12,8 +12,7 @@ > > #include "src4xxx.h" > > -static int src4xxx_i2c_probe(struct i2c_client *i2c, > - const struct i2c_device_id *id) > +static int src4xxx_i2c_probe(struct i2c_client *i2c) > { > return src4xxx_probe(&i2c->dev, > devm_regmap_init_i2c(i2c, &src4xxx_regmap_config), NULL); > @@ -37,7 +36,7 @@ static struct i2c_driver src4xxx_i2c_driver = { > .name = "src4xxx", > .of_match_table = of_match_ptr(src4xxx_of_match), > }, > - .probe = src4xxx_i2c_probe, > + .probe_new = src4xxx_i2c_probe, > .id_table = src4xxx_i2c_ids, > }; > module_i2c_driver(src4xxx_i2c_driver);