From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 78CEEC4332F for ; Mon, 21 Nov 2022 09:11:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iLec4yiUO6wgtMle13YoiZmebsRag9nynMlGO1H2jnc=; b=4HIMjDigt1HocZ qfpEHHHPQqQ61gaL1JjkN7TJCfLuSYX2HwB7AUgUQ0eFBrSljiBtpGUIwEXlDn8UDctvKb9dQhAx6 DCluuK4CDQPCvPQjbQSWsikOCtoKdQZOdcSJI2T6QB6OpxRBSorSg6XNwY8HxIcGFZK1QDNs/7s0G YFzpiICQXh6M+nEkCfSIfv/bBE9iOHgO9oD7jmpqXk6mpe7jCGIQxdlGTRdNZ+Vc1WuVDmSCIPwGa eztkOqLDX8YsQVCDw5OaM0peW1Lujf4aeJ9i32SxPNL5PFiU8tIinOeC9ut9WwtrVyD2zaAnsgNrR AEsewaU5ahJBKF7lKFoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ox2oT-00BgN6-HO; Mon, 21 Nov 2022 09:10:01 +0000 Received: from mga14.intel.com ([192.55.52.115]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ox2oQ-00BgKC-TV for linux-arm-kernel@lists.infradead.org; Mon, 21 Nov 2022 09:10:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669021798; x=1700557798; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=YK1fJnwYjE6pEUlQTwqHgFrvyAFXsLhLRFs9q3IFLwA=; b=WHmPlvjn3PVbjOCFdV6GjICILMs+WIfRhbejwUnSYEQ4Cxyzi7SwgRm6 NPnFmKOmWPypzYdWPK3xgjA61oqQyAPHrR04vbyEtmmYbW9TaaYVlo3Z5 j7O130Fzr/bLwUpoLndVRBaLBsmRmRPWGgBUfkBqOyvaqh6G5ScHuuuQc BNFlTELN95bMrOVECikd7SwkmkoI+DrXR+WPFCrNSfBETS2E5qfZHa0o0 ff4ImzJTf6wpX+MSnRCV7jVXcPw+MEJMIHbaoZrNxb7/jZ6Dn3072yuw1 IdSF26cDHLMqD9ijLa8/EvywIkFRUbE4r+TuWHTI3Xp4V7DPkTXjHA5eE A==; X-IronPort-AV: E=McAfee;i="6500,9779,10537"; a="313540366" X-IronPort-AV: E=Sophos;i="5.96,180,1665471600"; d="scan'208";a="313540366" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.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-Disposition: inline In-Reply-To: <20221118224540.619276-585-uwe@kleine-koenig.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221121_010958_988772_95F3F19A X-CRM114-Status: GOOD ( 20.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Nov 18, 2022 at 11:45:18PM +0100, Uwe Kleine-K=F6nig wrote: > From: Uwe Kleine-K=F6nig > = > 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=F6nig 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/uc= si/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 i2= c_device_id *id) > +static int ucsi_stm32g0_probe(struct i2c_client *client) > { > struct device *dev =3D &client->dev; > struct ucsi_stm32g0 *g0; > @@ -763,7 +763,7 @@ static struct i2c_driver ucsi_stm32g0_i2c_driver =3D { > .of_match_table =3D of_match_ptr(ucsi_stm32g0_typec_of_match), > .pm =3D pm_sleep_ptr(&ucsi_stm32g0_pm_ops), > }, > - .probe =3D ucsi_stm32g0_probe, > + .probe_new =3D ucsi_stm32g0_probe, > .remove =3D ucsi_stm32g0_remove, > .id_table =3D ucsi_stm32g0_typec_i2c_devid > }; thanks, -- = heikki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel