Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1867306rwb; Sat, 19 Nov 2022 05:08:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf7sJv7XT3gIz66A44AIWbyzUDQzJVwxiWST0N6VjOLUIfkKz9oOQ6F6O+G593xt6f0+zO0G X-Received: by 2002:a65:49cb:0:b0:477:27f7:794a with SMTP id t11-20020a6549cb000000b0047727f7794amr7817100pgs.58.1668863327829; Sat, 19 Nov 2022 05:08:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668863327; cv=none; d=google.com; s=arc-20160816; b=H3V8hq/6SV1aeWfFlSZ6LnT+5TlGmjhC8wiceL6ws0MQ6SfHET8pMWqNphNMGIlFQm np6bRcM9eZKv21DR3NG9Dckfk4GQIi8zpSwbnOkRdnpgfADQ6FCmuEv+LKqJQ0TuTAJU 7TlK6YNV3E0rZrrAh+wRWiRYXKH1+RrAHH446t/iachmT0TjsVIr83mMkJ0Lc0+vQ51u C+cu4/ejaD0YOCZq6ek6LaQNGRvtjmxegX/SBhjoG7frmib9baJnEEG2GObZh2JDmo8M CP9GugO8me1IQNbGsoeJJraP+1SizwT2/+9/YfW5hVdc2/GfWpPTJFljdSzB9dPlcrCK Jdcg== 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=4oyHKxSWWaJxvSt13X7gQ3W9bbef9cwNK4vJDf9Pqz8=; b=d8CBAUhgWOeDYT0bJZvpTQQI7Tm1FuFu4i9eDAL8nd2uAhuDrt+w5l6M8LtkkzgJa0 iT8J543jsehWvVvi5zwqXSYx3pmI3aWE4tgba4COBMJaK46DabNwo/qDjEsn6FNehl0F mHX/3IEVC5VEC9+MfpywaW7aq7K2GazuGBJAkq+mdRzdWtTDsDjOKqYkEsqQsF5ukto6 0gI1/OLTRNxrs4fqGFO1DzsLxgegSBHiK7FXr7CO//F99Mf1wMyAz5CgibQnSAAdNok9 ObfeFH+icNKOpnju40v4PsKhz106am6bWF18WqZONhr//rlC+46kAZqjc9rSJKwc7lQJ 0asQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WJqfqjjh; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c4-20020a630d04000000b0046ff4e3a5d4si6306794pgl.260.2022.11.19.05.08.23; Sat, 19 Nov 2022 05:08:47 -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=@redhat.com header.s=mimecast20190719 header.b=WJqfqjjh; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231757AbiKSM6D (ORCPT + 92 others); Sat, 19 Nov 2022 07:58:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231626AbiKSM6B (ORCPT ); Sat, 19 Nov 2022 07:58:01 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84CCF9CF62 for ; Sat, 19 Nov 2022 04:57:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668862626; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4oyHKxSWWaJxvSt13X7gQ3W9bbef9cwNK4vJDf9Pqz8=; b=WJqfqjjhv/fnsLxlLSKcxXrpqzoGP1KM7RQ9rvrAR2rYHT7qIQpmGMjQ4rxh7U5KLYtj1m Zusr8NdH9awq6thfoTWdoU4rgi3MdoT0eYc5mqyJqMcEsd8l45Q9FML6/yyJCWnf8N3ki3 Gmm56kZyDP7MZflgQicrh3RYFl32JFo= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-619-6AQCU66zPj-8lA1aMTpdeg-1; Sat, 19 Nov 2022 07:57:05 -0500 X-MC-Unique: 6AQCU66zPj-8lA1aMTpdeg-1 Received: by mail-ej1-f72.google.com with SMTP id hr21-20020a1709073f9500b007b29ccd1228so4648037ejc.16 for ; Sat, 19 Nov 2022 04:57:05 -0800 (PST) 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=4oyHKxSWWaJxvSt13X7gQ3W9bbef9cwNK4vJDf9Pqz8=; b=ymQjHlpxQxcloD0Ld3A3zkNSbe0baYenKz5znQV8VvPtTYjK/ZSv3jqbU2bcPzflxU Y28gZI8GmFJE45LUVQTsI3tux17+fkO/0JEituDdkVDU8UZT5aJNuYfQHoQ8Nwn2XXIH yWnKk5AHXxR0BYb5J858kapgoFulyZkO2Enbs3JJ+74HzLM39vvoj6jleXcJALMGkwbg 6N7IzX5bQVy5ms2Kc8THQmwAoqbRw7VXoBI9ko/aKMgdlE64nWbHNpO6inD+9iJOWR4a qCI77jg/HnwdgyvJaV3k/ss1CMgWktv2kEm6CW4Ldh7sAqEGz7veUOlVEeDDtj/qqkVE Wy1w== X-Gm-Message-State: ANoB5plye55I2gmsl6LeSl09htrzykucptEnjiSrdInf9rq10CyqDJAq IORavvyyg/y9D2XU0hE1Z4iIP1QcYzoJ2GgjgprqVq3dYSG8m8n3xP0SV6+V9qb5wwZTf5SQfCV WaBbJd8JZ5Gy1JLOPHUE8YJy+ X-Received: by 2002:a17:906:c1d0:b0:7b4:64d3:e6f4 with SMTP id bw16-20020a170906c1d000b007b464d3e6f4mr1966158ejb.594.1668862624096; Sat, 19 Nov 2022 04:57:04 -0800 (PST) X-Received: by 2002:a17:906:c1d0:b0:7b4:64d3:e6f4 with SMTP id bw16-20020a170906c1d000b007b464d3e6f4mr1966143ejb.594.1668862623902; Sat, 19 Nov 2022 04:57:03 -0800 (PST) Received: from ?IPV6:2001:1c00:c1e:bf00:d69d:5353:dba5:ee81? (2001-1c00-0c1e-bf00-d69d-5353-dba5-ee81.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:d69d:5353:dba5:ee81]) by smtp.gmail.com with ESMTPSA id r9-20020a17090609c900b0078d4c72e2cesm2837826eje.44.2022.11.19.04.57.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Nov 2022 04:57:02 -0800 (PST) Message-ID: Date: Sat, 19 Nov 2022 13:57:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH 056/606] iio: accel: mma8452: Convert to i2c's .probe_new() To: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Jonathan Cameron , Haibo Chen , Martin Kepplinger Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221118224540.619276-1-uwe@kleine-koenig.org> <20221118224540.619276-57-uwe@kleine-koenig.org> Content-Language: en-US, nl From: Hans de Goede In-Reply-To: <20221118224540.619276-57-uwe@kleine-koenig.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Hi, On 11/18/22 23:36, Uwe Kleine-König wrote: > From: Uwe Kleine-König > > .probe_new() doesn't get the i2c_device_id * parameter, so determine > that explicitly in the probe function. > > Signed-off-by: Uwe Kleine-König Thanks, patch looks good to me: Reviewed-by: Hans de Goede Regards, Hans > --- > drivers/iio/accel/mma8452.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c > index 3ba28c2ff68a..f97fb68e3a71 100644 > --- a/drivers/iio/accel/mma8452.c > +++ b/drivers/iio/accel/mma8452.c > @@ -1545,9 +1545,9 @@ static const struct of_device_id mma8452_dt_ids[] = { > }; > MODULE_DEVICE_TABLE(of, mma8452_dt_ids); > > -static int mma8452_probe(struct i2c_client *client, > - const struct i2c_device_id *id) > +static int mma8452_probe(struct i2c_client *client) > { > + const struct i2c_device_id *id = i2c_client_get_device_id(client); > struct mma8452_data *data; > struct iio_dev *indio_dev; > int ret; > @@ -1846,7 +1846,7 @@ static struct i2c_driver mma8452_driver = { > .of_match_table = mma8452_dt_ids, > .pm = &mma8452_pm_ops, > }, > - .probe = mma8452_probe, > + .probe_new = mma8452_probe, > .remove = mma8452_remove, > .id_table = mma8452_id, > };