Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp151519imm; Tue, 3 Jul 2018 15:55:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdm9pNfIhFwYtqwU/ne885VCRmjgXUeeMG/ZT/dZZA/QMU6hs1j2Biy/E/h1gPL8S6T17r0 X-Received: by 2002:a17:902:8685:: with SMTP id g5-v6mr15946060plo.180.1530658549752; Tue, 03 Jul 2018 15:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530658549; cv=none; d=google.com; s=arc-20160816; b=n6YmGE0VfcAqTeTUtB05Gt3XFCfVN+VSB/dpm7psbhgOdknCWHH/v7423pddRez0oK 3KPfDij9CpHE4/HVDMMBMjInDy+b1wEwUK6p2ktw93sqFsV26xNjTiPHq3DDRxyD/QVg 09TzXXp0bc8dmEKGz12pzFcgjLLGEfFUGNpYD1hyFrhh/Th2BF6lBpTBGNkOGTd8WoGe czCt29JoxY4s/CeN8o55AQnPDSv3rYKLNTMTVnbMrFVDS95o+MlhGy2uQmgGZ+jWSG7j nwnrrTbp8QOjGZ4luUZzkpf3+RVsZA0igT80yVtAXhzT7F5wf1Ta2GmSZVx9zF3HcxzX deWQ== 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=vrrnt1jcIVq3iiJjGe1Z+mSWBFbaV9A8bD8ynsAz+4E=; b=Z6P6hqZVRRPlkdkeI04HvYftUbYLMWAcnYyTorQ7aWGMe+E1w018pMo2jLsr2rCzA0 UOuaBqFDS4r55gKsoPyU9il+6KLGo2ZD3uCuFZQQi6RVyzZcIkLx1CW6Nkql8rF8CQcz uLJKVbcqf77q9+CAu+IaU68Fco7GrN4fbjizud/M/kGxMqfToPA8/9pezkTCBeUwT5FL I/z0TOOhYeHOZjVfHGiByguJyYF28RwjpVpDUAsJTpQjisXsYRJ0vfqEo1XMVQ3P+uUl zGwAdBIhp2jM6EP55BySkuZ1rVv9KhbIMkq3MmeCe0phhPQ13HLN64i0K3Dvw0cXDQd8 DgzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gGtU1fAD; 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 f8-v6si1804672pgp.293.2018.07.03.15.55.33; Tue, 03 Jul 2018 15:55:49 -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=gGtU1fAD; 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 S1753381AbeGCWyw (ORCPT + 99 others); Tue, 3 Jul 2018 18:54:52 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:39788 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753105AbeGCWyu (ORCPT ); Tue, 3 Jul 2018 18:54:50 -0400 Received: by mail-ua0-f193.google.com with SMTP id n4-v6so2275172uad.6; Tue, 03 Jul 2018 15:54:50 -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=vrrnt1jcIVq3iiJjGe1Z+mSWBFbaV9A8bD8ynsAz+4E=; b=gGtU1fADKtocn/qreZ4IethBt5cKQdxyYAnglBOyDO1cUnoJLZavIHY3KHwGiId+Jc +tcRaYP7C2Kfwe3mRAbxANAcweTFlCj/dgoRQei4VkWM4HsaCc8jRmo/Ryhg67NTPQh3 ltDEQBjLqxuICMvCyYQZeFWwaqHGpJsmOxp0yxVrttui9Eb28jbWs/jK9GGRdf1qBZJl e7SR7rgVzzSAmczIjBmytKQYZwblmkyAD9YUGt00fcmSP2a8HR8L+/Lr5EfrcUW26x0e amuX7CWVcjwU5FfsuWHzhzxo/CNR9vkdfhSKJ2s4rkzTxaFbVSyva7ZaVu2TFs9v20TG rA8A== 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=vrrnt1jcIVq3iiJjGe1Z+mSWBFbaV9A8bD8ynsAz+4E=; b=kz+PsiuZmxJeMeOdYlSYa16CWcbDExb5rOaopskg1L2Mjd71Cs3BhFf7yWcpNzkWGO wOOR1VRTcoMfuaS8Egxx3yx/ir0Y9BnKkuXlbiCna3svGE0euUrz82Oxn+UcaDF1A2nr ksRfhawqPdraodWJtt1O+a7Xmuju1qwySLPi1TIte3MQuo6ml8IjPva4h9xj8nLkPpLN E3saSwwVAZkIqNzL/WgJfS6p8sUmFpQNzLZdrq42wrFy/hZV1dyC31f8S/ZJeD9y5403 S/fXZKA8qPX+PkZ26XIcc5dJxk9a+VjNesMu68XBFT8R7BWebvr7YzooDihRasGq+WPl 7ktQ== X-Gm-Message-State: APt69E0P1jzRPkkXD/0ZTAYcOwBvNDtDB/YNrdgfVKEGi2LYLgJjMU3S 6+BDaY5nbZkGZFTdQclMGZocF2l9AWhM9R+DrsQ= X-Received: by 2002:ab0:1a23:: with SMTP id a35-v6mr19601740uai.47.1530658489616; Tue, 03 Jul 2018 15:54:49 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:2149:0:0:0:0:0 with HTTP; Tue, 3 Jul 2018 15:54:48 -0700 (PDT) In-Reply-To: <82c6f53cfa03f9bc7c0adfc423ae65fc986a1d25.1530599660.git.nikolaus.voss@loewensteinmedical.de> References: <82c6f53cfa03f9bc7c0adfc423ae65fc986a1d25.1530599660.git.nikolaus.voss@loewensteinmedical.de> From: Andy Shevchenko Date: Wed, 4 Jul 2018 01:54:48 +0300 Message-ID: Subject: Re: [PATCH v2 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 , nv@vosn.de, linux-iio@vger.kernel.org, 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. > This makes... > MODULE_DEVICE_TABLE(i2c, st_accel_id_table); ...this table obsolete IIUC. At least that's what I did when switched to ->probe_new() in some drivers. If I'm mistaken (again? :-) ) I would hear from someone to point me how it can be used after a switch. > > -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; > @@ -182,7 +181,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