Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp822578imm; Wed, 4 Jul 2018 06:38:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpePQaoatiZAGt2/6hV6RclkmKCHrGWmpsxatT7Y+DlyrmWnJvcvGo1WcXuSXlDPUz135yeh X-Received: by 2002:a62:1089:: with SMTP id 9-v6mr1502126pfq.30.1530711482090; Wed, 04 Jul 2018 06:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530711482; cv=none; d=google.com; s=arc-20160816; b=y52jAeReTTzH02HtH1Pfh9Hw3gp0z9nkEFi+RDUfGoWMmhkrNB9/N5+O49Y3xa49tM vpTtziyTwj4H4xhUZXtDIXED9otWrB08w1wdCFixaln/1QyGCTjJODjwgP4R5IjzrIKx wrsF5yjlA73nj34rPcVuceGMPxp+tkBSlokAtJrynwf8qsfyWehdistG4RGOyG6Klgs9 vMlyOsihmrlSw2eYnYlRUCRuh8FiAvnihYZk6XtdDxXAczfnwbsBoywtRh8CLKsjyKXt JPBcWEGjyouOO+9PbD7KTGJ4xi8eo62swoVAMHNvqOEtLSOUPdd9FNWovcvb0zcZIW3N 6ysQ== 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=R+89oqhwnQOs0tfAAsEP7rdqXDcx5XYjj6uaZ6i5Voc=; b=Gf/7x1DaJcnfOW4aorH7w2lbDt0jlLqh9iNSyyPAaKPpdq19lQPTLk/n8MS8gsAUUH 1z4/760yiwBiAmlr6i2ineWSvSLwli76A3tLRfH6CLgd0FuIa/ZlP6i1Q+tWOrMLL4bp 4VlAbBUtcmWDNpfDtTpT8ohzBG9wofTthOHmw+Qb28yDvdQMRcJg11xr5HMEVmuQNr2P 0vetoznr4kfrNHF7ob5+QIGhDOsIswr1aSl6GJ5WopW/rv3SySYxJJGQxgnZykxELuPY ek4bJ0wBlZYt2ImwDiwNhyssXvw4MvCtlsoRzCqLibZwhGmIc8R5FD4fwpIMCfQ8Bwow Jmuw== 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 v14-v6si607861pga.270.2018.07.04.06.37.47; Wed, 04 Jul 2018 06:38:02 -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 S932282AbeGDNfm (ORCPT + 99 others); Wed, 4 Jul 2018 09:35:42 -0400 Received: from mail.steuer-voss.de ([85.183.69.95]:45712 "EHLO mail.steuer-voss.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753421AbeGDNfT (ORCPT ); Wed, 4 Jul 2018 09:35:19 -0400 X-Virus-Scanned: Debian amavisd-new at mail.steuer-voss.de Received: by mail.steuer-voss.de (Postfix, from userid 1000) id DFD8843117; Wed, 4 Jul 2018 15:35:13 +0200 (CEST) Message-Id: In-Reply-To: References: From: Nikolaus Voss Date: Tue, 3 Jul 2018 08:06:57 +0200 Subject: [PATCH v3 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 , Javier Martinez Canillas 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 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