Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp822930imm; Tue, 3 Jul 2018 00:08:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdfPnqmayQno64hYoqTRHbWRQ2jPnwhzu3LyzFsiqwe3tHgNp4lf0xsBlm8cV7bokolseQX X-Received: by 2002:a63:5055:: with SMTP id q21-v6mr2572669pgl.397.1530601722321; Tue, 03 Jul 2018 00:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530601722; cv=none; d=google.com; s=arc-20160816; b=w51YrpVroiuClfshEurKfX2HLtZY4ZXIeTyoBXZDbkhEUZGGQ3ah/iGowV2xIt8nNR sQFF5l6F4D7WfcRYqRhaOPUya1DfqZiYGfoDaQNCARXr2ikrqSO2h8ghaO4eqqoHE/Cg 4pbJYDfsBM/9ss64FF9UwjpJ811nvenq6aM4CZi+UM/AArZS4XAoqoqxyJCypl9l4flk +WQvOsBfPG9y9ZsmhHMtUqzzYL16UAbYEZ6vKGF7yF2oLkY31/CHFzvSp+/0NsCyPS7D +MOh05rIEKks6tavjCYW1Ok32WaupJO9UpOGprHHQM6E69bfu1vhoYT5KXFftLhe+Fnt 0eBQ== 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:date:from:references :in-reply-to:message-id:arc-authentication-results; bh=h0j2vBPR9TWuJF8Dpa/pOcGRwql+HJz0s5r/ahQxHxc=; b=LTKLfkgcasnIh3DhTwEfzWDII6qLrW4oJCsiqftubBPvlnJ31qF3c0dhdDKfzWArjF d6XsagCEGtzYl34cRK23bq4b/KJk+2jVDpgIDq0RpnaDW6BnSgMwpjKfZVLhd4QPr4so kzVS9FCqDxlzSCTsu3UT/hIeiDAdIsqFG8pjYZhZta0WzEsMFSm7oxuJ+iEzwm9ud5Dg /GMeS7cxEdnJmNErElfSJegmsHQ8yTdhC/bu4gQ0Z71zt7m2sKYin4fi5nQrLaURIj8t 9bCJ4CYTFbM9NBUtbHmzDEtVhObML7aj0JTBxMaB8KvUyr+YKvlu3JhWPQc/2dKPzEJ2 xRGw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 194-v6si429884pgf.651.2018.07.03.00.08.27; Tue, 03 Jul 2018 00:08:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754498AbeGCHEU (ORCPT + 99 others); Tue, 3 Jul 2018 03:04:20 -0400 Received: from mail.steuer-voss.de ([85.183.69.95]:55142 "EHLO mail.steuer-voss.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753777AbeGCHD6 (ORCPT ); Tue, 3 Jul 2018 03:03:58 -0400 X-Virus-Scanned: Debian amavisd-new at mail.steuer-voss.de Received: by mail.steuer-voss.de (Postfix, from userid 1000) id 3818C41C55; Tue, 3 Jul 2018 09:03:48 +0200 (CEST) Message-Id: <82c6f53cfa03f9bc7c0adfc423ae65fc986a1d25.1530599660.git.nikolaus.voss@loewensteinmedical.de> In-Reply-To: References: From: Nikolaus Voss Date: Tue, 3 Jul 2018 08:06:57 +0200 Subject: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe() To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Lorenzo Bianconi , Linus Walleij , Xiongfeng Wang , Andy Shevchenko , nv@vosn.de Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct i2c_device_id argument of probe() is not used, so use probe_new() instead. 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 163f7ec189b0..2bc54a5a2c96 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; @@ -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