Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3936962rwb; Mon, 21 Nov 2022 01:21:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf6PjpwIIpjxd2VAd9lmW3eBB8QTvyfhpHJPy3xM2mlnZDDJRWW52r8U8T6AzFrYoGv6k9V4 X-Received: by 2002:a17:906:b29a:b0:78d:b695:1d68 with SMTP id q26-20020a170906b29a00b0078db6951d68mr6221800ejz.235.1669022485897; Mon, 21 Nov 2022 01:21:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669022485; cv=none; d=google.com; s=arc-20160816; b=tX+zAUWJKO9PEOqPu1eA4YtsJR7kK0nMGaQza7gQZgPXStCmqhEGdlW2A6CU+jAlC8 U9/evOAlirh5YatPTFeQwQj+y1dh/iYElxjcfVOj5cXJ4RsSUlrQC1EyZ4N1sNF2dLCn uOymDkQtvje2AL+MBqIbjZU2XDRnUo4XDvm/kghM4meRIu2YGh1GIM2/NAGqdpalesB0 lSdYup7Pe+OJ88L5p6hqkfNdG6oFjf+Sj5oG8RU6XfapD2/xbq/xp42+AqHmOZoNlpUe zOWiWVQVWMbhzprs+2ij4WJnb4wDJW0T/PIQrN4rEJ5WpPW/psGD7O7ceyVonoTH29hh E/3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=albftp7h2YQUw9YDC7H47YVs2/h8B0fdf0HyCIQWFlc=; b=RYzUZYd9wp77845huTVCuy0AlBOotbtd/qUJx4iIPKFGSbKgCCHLScAaMaOxpvp/2B dGjAxOdJhon1TAs5XUQcRzhbYGOCjf2g+11Lwdaj9Li+nekSkI5MPwAtLC5/lukgHWI/ d5uHXed9hwUz7pTsRjDDMdNwRMPmPDzgNYglutYRjOLVyNbcr5wfxEPCRtILc+492dSP y2mOPiI3+59aRKkLn1TCVjV5Mp2meGN+NuAu1X8qrlBd/CxM+vOMcN9aKoVnKsxfa7Z/ Ab9WU1pkdcDxv3OGgl5zzGNFKOdruC1F4v2PZvWyyw3XeeEFg7zD+bh3sun4Dd4KzMz1 o/jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VPqJBqz+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rn5-20020a170906d92500b00781df71dbc1si6990022ejb.174.2022.11.21.01.21.02; Mon, 21 Nov 2022 01:21:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VPqJBqz+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230106AbiKUJKX (ORCPT + 92 others); Mon, 21 Nov 2022 04:10:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230166AbiKUJJ5 (ORCPT ); Mon, 21 Nov 2022 04:09:57 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C41A8DA5D; Mon, 21 Nov 2022 01:09:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669021797; x=1700557797; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=YK1fJnwYjE6pEUlQTwqHgFrvyAFXsLhLRFs9q3IFLwA=; b=VPqJBqz+oqplmUPzu2q7pq7XThTBKojIo8jlrRXcoQHVpvGQ98kNWf/G gEHNcsBG6U0VdzNV2qOPiZw2dM+ri0UVhaWyf+9OVUDKr5+vKUzeinHVT FXTRnA9nv6+qqOPlerOxlZo/FXWPwTiZchWb8mTcpHCsR/rX2eC7Wlviz sOfS2fBRDtneqpeibT02FmVbeecfVxe6D1/vCItvJjgT8Qp4k4mcOW+8S 1S2O0d+SdHL6bpiO9GOniJhoZpysDd0LTLl+Axpw4uu8BYNLKsWZ41pEq 2yPRWGXdb0AmJHi4Ta0Hq8GWNpDJYEcLXM8RGiF5wTH7GB8+UcAaY6DFv g==; X-IronPort-AV: E=McAfee;i="6500,9779,10537"; a="293221035" X-IronPort-AV: E=Sophos;i="5.96,180,1665471600"; d="scan'208";a="293221035" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2022 01:09:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10537"; a="783378100" X-IronPort-AV: E=Sophos;i="5.96,180,1665471600"; d="scan'208";a="783378100" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga001.fm.intel.com with SMTP; 21 Nov 2022 01:09:51 -0800 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 21 Nov 2022 11:09:51 +0200 Date: Mon, 21 Nov 2022 11:09:51 +0200 From: Heikki Krogerus To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Greg Kroah-Hartman , Maxime Coquelin , Alexandre Torgue , Fabrice Gasnier , Corey Minyard , Colin Ian King , linux-i2c@vger.kernel.org, kernel@pengutronix.de, Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , linux-usb@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 584/606] usb: typec: ucsi: stm32g0: Convert to i2c's .probe_new() Message-ID: References: <20221118224540.619276-1-uwe@kleine-koenig.org> <20221118224540.619276-585-uwe@kleine-koenig.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221118224540.619276-585-uwe@kleine-koenig.org> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 18, 2022 at 11:45:18PM +0100, Uwe Kleine-K?nig wrote: > From: Uwe Kleine-K?nig > > The probe function doesn't make use of the i2c_device_id * parameter so it > can be trivially converted. > > Signed-off-by: Uwe Kleine-K?nig Reviewed-by: Heikki Krogerus > --- > drivers/usb/typec/ucsi/ucsi_stm32g0.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/usb/typec/ucsi/ucsi_stm32g0.c b/drivers/usb/typec/ucsi/ucsi_stm32g0.c > index 7b92f0c8de70..93fead0096b7 100644 > --- a/drivers/usb/typec/ucsi/ucsi_stm32g0.c > +++ b/drivers/usb/typec/ucsi/ucsi_stm32g0.c > @@ -626,7 +626,7 @@ static int ucsi_stm32g0_probe_bootloader(struct ucsi *ucsi) > return 0; > } > > -static int ucsi_stm32g0_probe(struct i2c_client *client, const struct i2c_device_id *id) > +static int ucsi_stm32g0_probe(struct i2c_client *client) > { > struct device *dev = &client->dev; > struct ucsi_stm32g0 *g0; > @@ -763,7 +763,7 @@ static struct i2c_driver ucsi_stm32g0_i2c_driver = { > .of_match_table = of_match_ptr(ucsi_stm32g0_typec_of_match), > .pm = pm_sleep_ptr(&ucsi_stm32g0_pm_ops), > }, > - .probe = ucsi_stm32g0_probe, > + .probe_new = ucsi_stm32g0_probe, > .remove = ucsi_stm32g0_remove, > .id_table = ucsi_stm32g0_typec_i2c_devid > }; thanks, -- heikki