Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp983059imm; Wed, 4 Jul 2018 09:16:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc8zfuqrdmiHV90K4/y061a3DwIvM9rSY9nLycfkaO0kstl8NW98lxP7EjHEWU+VtHEqUkI X-Received: by 2002:a65:4b04:: with SMTP id r4-v6mr2420294pgq.175.1530721006000; Wed, 04 Jul 2018 09:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530721005; cv=none; d=google.com; s=arc-20160816; b=tiggWe4HMHaKyLSr+e6jmOezStABAqb0H3w3m8J1WRTPcsz67VqOr8+MQVWt0NTvZG JZE6tPOYm6xm1e4G7ZrP+6KaJtR1PpK6tNcTsvQNCvLJ1irBgQeSfMnN397Y0NLKL8KR BhtTYUi5SKaQ963/dFw2oOWdomzis2e+fqFLsMnKlgmmL/hPk3hMLtKEytEzM5qMzSa9 ukAjolFb5lqeuN2zjEoz+1qGUz5brgrhupNwEdQdrrlJjLLzKpIBo9k34Gw4LMNYftIq Wa/IRkAxn9okcIbO6pVInFWVKCYSHkr23fv8ebcnwS5ZTodww/lp5iuzo+5VSaNhuPZX YI4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=wMrl5oeRM9Cu9TmphJa670i3Tirp6R6K6QCbo3AK5zA=; b=Hz9zc3tBOtChRUu3ENK8S1B8Yj32AavLSrbQWKJSruH8SQ22uzNgkW3WENMkwl76Zg /ASBoYGnr/8ES4OBeIe9zjpZ9TOmbB7mhc7a8FA4YDLA0eFSG/fLFTO4p766mtyZDP3A R+y0rAQGtxgLPeQtrrghNBwE+XU78d9PNCpspAQJQLP6UmKGWUgujPzV0SSNYH+VL4/a B+kg/WlYse7kigHVxGaQbh/iQtCHqnUBQNQ3vEN0Ub3gtCGpSI9/YYbIlO3EzMCieIGk tw94YZATl5MuVtx2bzUbRVUiRT7GQGlA6gV1uc+WjfFY/mvsVL7e0Y4WU6046md7SC9g dHTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ql4EATbv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10-v6si3981982pfk.228.2018.07.04.09.16.31; Wed, 04 Jul 2018 09:16:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ql4EATbv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752620AbeGDQPL (ORCPT + 99 others); Wed, 4 Jul 2018 12:15:11 -0400 Received: from mail-ua0-f195.google.com ([209.85.217.195]:41242 "EHLO mail-ua0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752260AbeGDQPJ (ORCPT ); Wed, 4 Jul 2018 12:15:09 -0400 Received: by mail-ua0-f195.google.com with SMTP id t14-v6so3744430uao.8; Wed, 04 Jul 2018 09:15:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wMrl5oeRM9Cu9TmphJa670i3Tirp6R6K6QCbo3AK5zA=; b=Ql4EATbvvmz+e4sQanzDuAI/0a0xfyeN3pQAqNrJ7Fz5peDo2Tr70EyYq4tLEpcgPo tynG6OURgTYXvEp7dLN3OQtjvp1fsiNwYkOyfmO8wRwpaPnpTjYvb5RL4XquIpT5o7J4 IXH5mWb9SYvmHw6aKYP9kF4lUl7EqXC2IWkSIPMkTrYLiI1VhA2T4vEHOEXPAs2Fjp4C wf3nPyCdfQa9lx0JtS+HYB67hWG0OvaiLkBtx4GjtARKFHRO9frTNIzfAbM1YpaMMDtd lTXKlRilXY2TMaw6+B9lQNnmyb3F0RzClTicr06pAIM5REepy9XTRV71uZLwe0gruJdY MbeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wMrl5oeRM9Cu9TmphJa670i3Tirp6R6K6QCbo3AK5zA=; b=clrmM44vMEJsPpaW3NI1naYViTwvqZj8r62x+lVZLSyJuhmDelVF/5vJ5q5yyXtHuH 0FN9CtjkuI6X92IBSAvd58JY+P8+pKfv1ADr8QgQ5R2QmAOzEzOdPiqvHl9Oq5MKmVsD cdUkUUto+ZRlABnqMp6vfoF452ak0aDG2zbls/oTzr0/tceEv/nQiS0BU7onHY/LiQwI Rny0kSEURd/+ttrsGnjAUiPB036JltkkqtkfHnoKmZAq9nilspW9/IG9LUjQm/iN7HKA DK3PobbCnM4MI4Pw7WRmoiWQyujhdbwE0QoX0ZiRbJnNvcbyHo1gZem87GZuQn3kAABJ 663g== X-Gm-Message-State: APt69E0Hq0XiRrHXw+57onGiE/dcMtpOPd73ZAFEOAht+egFXtJRW49q OP5pzikoXsa8eIwiskKoLVd+e2wWNMCsmuNAPw0= X-Received: by 2002:ab0:1446:: with SMTP id c6-v6mr1576116uae.12.1530720908489; Wed, 04 Jul 2018 09:15:08 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:2149:0:0:0:0:0 with HTTP; Wed, 4 Jul 2018 09:15:07 -0700 (PDT) In-Reply-To: References: From: Andy Shevchenko Date: Wed, 4 Jul 2018 19:15:07 +0300 Message-ID: Subject: Re: [PATCH v3 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe() To: Nikolaus Voss Cc: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Lorenzo Bianconi , Linus Walleij , Xiongfeng Wang , Javier Martinez Canillas , linux-iio , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 3, 2018 at 9:06 AM, Nikolaus Voss wrote: > struct i2c_device_id argument of probe() is not used, so use probe_new() > instead. > Reviewed-by: Andy Shevchenko After Javier's explanations it's more clear now why we leave i2c ID table. > Signed-off-by: Nikolaus Voss > --- > drivers/iio/accel/st_accel_i2c.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers/iio/accel/st_accel_i2c.c > index c6e08c834f11..0659e9a67f85 100644 > --- a/drivers/iio/accel/st_accel_i2c.c > +++ b/drivers/iio/accel/st_accel_i2c.c > @@ -138,8 +138,7 @@ static const struct i2c_device_id st_accel_id_table[] = { > }; > MODULE_DEVICE_TABLE(i2c, st_accel_id_table); > > -static int st_accel_i2c_probe(struct i2c_client *client, > - const struct i2c_device_id *id) > +static int st_accel_i2c_probe(struct i2c_client *client) > { > struct iio_dev *indio_dev; > struct st_sensor_data *adata; > @@ -179,7 +178,7 @@ static struct i2c_driver st_accel_driver = { > .of_match_table = of_match_ptr(st_accel_of_match), > .acpi_match_table = ACPI_PTR(st_accel_acpi_match), > }, > - .probe = st_accel_i2c_probe, > + .probe_new = st_accel_i2c_probe, > .remove = st_accel_i2c_remove, > .id_table = st_accel_id_table, > }; > -- > 2.17.1 > -- With Best Regards, Andy Shevchenko