Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp829001imm; Sat, 7 Jul 2018 09:37:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd3qVKSNLltqMW17o1osurbGi8mNHdB+2hRafaL7Z5lDkBWCkhadTH0FOWz8tgt8n09lnT1 X-Received: by 2002:a62:1157:: with SMTP id z84-v6mr15012039pfi.66.1530981449841; Sat, 07 Jul 2018 09:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530981449; cv=none; d=google.com; s=arc-20160816; b=kBMaDg2fRAM6uEQiPrC/wAe8kpWZvgRUpy+bb58mOtQt/F1mNGP2bjYar29fvD/iVQ t7iAdJArqMdXWOjEJptlcDsJ8bATGMNLYJxEutXoQ5LF/vsPHQK8jlNItt5tPR7QuCbk au7RLjmeEa8S9Q0So/lMhXRXsdbhL/oDD2J5gJPWGapXdSsl2JslwEFETZlIzAjCAU22 0KAkOyEqxys9zL5rbhwi6qOOjyHISdq5RqId4XNGJv4SKFIYzZn/tIQKcyvJNJj3pkDI QQSrgTNqPSTWzGBokfAFhglGQtgKQf6QjdnatiirWAtAgAdt0WGstrTmEFUWzrFc/I7A oCoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=aeD7KYSV5FQLAy7GvUpeygZjRLCET2mRPyW5TXVhhiE=; b=Rcc2DOKXv3hQCLhcASWB41LLhVq+POJj/Scyl9aqoha4nNFbEnE50bdcN8e5NE1+vE Itonq4kMhUakLB4MWYthWaSwST8zRoRuTPiq7MR2jOlPdCTVYZF87KNd7xFUNcBlFYfG +lOWbBpEsEWhiXmR8gt/bp1/VkRbIS/uTtRq2DQba5IkXrDEN8U4UJJG1mA7YTJhtY3d 3CjeU/xL7278Pg7ITZiSA5GvoxGT8OxxZOASK0DChm/jOOaWUs1xsIbX5k8qWznF2dzN oHhx9MvuI2Co3LipVxJbY9Md7NHZ/H1VgK3Qghj5xdaMOA4cassIC4/Hbo8LYVL9XlMj NANg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OBi1Dxz8; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z21-v6si9573322pgu.163.2018.07.07.09.37.10; Sat, 07 Jul 2018 09:37:29 -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=@kernel.org header.s=default header.b=OBi1Dxz8; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754335AbeGGQez (ORCPT + 99 others); Sat, 7 Jul 2018 12:34:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:52332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754314AbeGGQey (ORCPT ); Sat, 7 Jul 2018 12:34:54 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9EDEF215F1; Sat, 7 Jul 2018 16:34:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1530981294; bh=TFSIpaSGyBc2HhEkgHz4mo6NA9QBqC0JbIHjMvtxP2g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OBi1Dxz8VOxhUFsBXoK+b9x8uZeg7ph3U2m6+d4tS3x+WxXkOnJaZ0F9X79gvSyMB oCSn76PUahQm+XHE6U7qGrzwzNAU+USQOJljKjjwIBeP4o7+OYVZgWq0HZxVqnaneQ Xp8X+mKbDIdrYnqSepBrDtBdS8ls0crxJiG0CjkM= Date: Sat, 7 Jul 2018 17:34:47 +0100 From: Jonathan Cameron To: Nikolaus Voss Cc: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Lorenzo Bianconi , Linus Walleij , Xiongfeng Wang , nv@vosn.de, Javier Martinez Canillas , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe() Message-ID: <20180707173447.56bb4d8c@archlinux> In-Reply-To: References: X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 3 Jul 2018 08:06:57 +0200 Nikolaus Voss wrote: > struct i2c_device_id argument of probe() is not used, so use probe_new() > instead. > > Reviewed-by: Andy Shevchenko > Signed-off-by: Nikolaus Voss Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > 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, > };