Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp417808imm; Thu, 5 Jul 2018 02:35:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpddf98k7Qn01ygsfwRcuPVeFMwE3XHV1cjlUeD2ub2+bTkkDNgZ4deagwNbmBl0hPSJgOM8 X-Received: by 2002:a63:1015:: with SMTP id f21-v6mr3811497pgl.354.1530783347677; Thu, 05 Jul 2018 02:35:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530783347; cv=none; d=google.com; s=arc-20160816; b=R6rBCWBHv+iFu2Zf4wQCpVrgc36wqsuKjXiqbxpuoes8WaIoweQHbD87PpbM+vi+mB 8HUfAKyCFGbjZFJaufas+Jx2z4uScwXqnBAcoa+ZQjPm+52T+KuqfUIK6BIzeP2vpLWO dNCWlVfUiN/EuxLLyaG9HZcVAIT6DvKq0R5n09ROmznHBiEtLWY6wlPedqr24FAeM0BV cdEUD1TN01jQCXw14P+F6O5KDOyGVDMfmw+3Eu7+R38Dhm3BGwomAlHbxH9eKhbsKJrz bdh2uqiRqR/5WZxmu0GemxN7fUaqapK79S/LpxEuPiT7O4hzJ6FYL5shVqYCvevn0NGB AklA== 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=yt2x1/EvfDd52IXSFrZa+W8+PTBcI5qHYg+POoKzX9s=; b=qWzUo6NTYvnCL8J9PQ6xfrKNbtP6HvUeUnRRGpMMeu5Run7JhSulipBNWIg8Pusswe 7Q9/QxF1eoPlrYt2Yi98/JhpXM9obgOu1qC7eQBd7klJ4tHkw+h7T4eOI9oIaqBQd72R /mIWZX4ucbP8aXQBwmFRIFUcxTsa2a4cX4qiGSkJdUjnBd+y+fnQc4nnejr5RzKQd+Rk rVbgwc+AhAayI0RamCsYI7QW6Vx3FEQ0lsuu9Oex69wvuxDi/8/7FXETO77/1jryLcvK B85ZK+t7fZAsSn0OmsP/KoQSA6N+In0MIAD/PrYadFWqHnBuwJG31z6K1+YqkM7ZpkXR +fgQ== 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 m87-v6si5761880pfk.56.2018.07.05.02.35.33; Thu, 05 Jul 2018 02:35:47 -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 S1753436AbeGEJeX (ORCPT + 99 others); Thu, 5 Jul 2018 05:34:23 -0400 Received: from mail.steuer-voss.de ([85.183.69.95]:59098 "EHLO mail.steuer-voss.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753400AbeGEJeU (ORCPT ); Thu, 5 Jul 2018 05:34:20 -0400 X-Virus-Scanned: Debian amavisd-new at mail.steuer-voss.de Received: by mail.steuer-voss.de (Postfix, from userid 1000) id C33EB43E1B; Thu, 5 Jul 2018 11:34:14 +0200 (CEST) Message-Id: In-Reply-To: References: From: Nikolaus Voss Date: Tue, 3 Jul 2018 08:06:57 +0200 Subject: [PATCH v4 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 , nv@vosn.de, 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. Reviewed-by: Andy Shevchenko 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 d02298f0256c..2ca5d1f6ade0 100644 --- a/drivers/iio/accel/st_accel_i2c.c +++ b/drivers/iio/accel/st_accel_i2c.c @@ -139,8 +139,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