Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3954897rwb; Mon, 21 Nov 2022 01:42:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf4qTjn/m1BavPWTrDvrDNRBoobZwZrq3/mrqrsbJ8KTJWQMMzYuTccpgWOmDDAibmHJ540h X-Received: by 2002:a17:90a:2c43:b0:213:f0bb:a44d with SMTP id p3-20020a17090a2c4300b00213f0bba44dmr25513299pjm.237.1669023728754; Mon, 21 Nov 2022 01:42:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669023728; cv=none; d=google.com; s=arc-20160816; b=XTdwn3hk/OEZLlF5rgXtY8lnpxOlvBmdRy32NUBjF5C9VJw0slu/HqgK53B2tvOYl1 yLmOM99cXXjF5OyGEnVrICfNBI2OIQ/EWs1k7JiHfJ9MEDvGbFNrHXj1ZKblXAC+kNYE tc0NayixNIvMw/kbje98iVjsVlpzfWdNOzTRakDZByMxr6bF6djuCq7U8H6JWcZNoFbZ 0zoxVQC7oMric6Iv3zS+SM6OAgesJGC/GrG6wWJFo/YNOZt12Gcg5wrxQlhKndr/kjMv i/S+7hp5CBmBYV7SLWgGRphBnEDSJK2qp/pBfasGDZdRwbGSxUoDbNfrEY5PoE30btZQ MWYg== 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=Z3KzY2TfGyEaQa5CqoY0q2iXztgvBshhTP+ZqWHW4kM=; b=hoxiaQi3kpFWHcBjX7kIHEr0semoZMHgKWb88ZZhzJ39tBMvdo1QrhGv868/IxlAZK SuDyU8QDh18yEOiwaaV5ha//7vkfaKt7qr6QYkwFFejKXNzieFQV2psbS5xoV6ydTAeU /z1YS9q5Omibo1acCtg0tY7WqTdIWRK6H7S1wfAwOfSOWe+3OTIjkuAHx0QtSc4KyNRR H14rRlEoKfhYonw07aLvLfMlXwKDn5KlXalAQ485VRhCFeDo9chhIY85GH3nzdXWQi7A QgXIfrDmWnNmsM10GOMotBU9110yRWQtFS78nkn7lkQ715zR6Bl2ybqA6yCCl6fkstso Hgaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Kk6798SW; 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 g8-20020a170902740800b0017f577878edsi10336137pll.368.2022.11.21.01.41.55; Mon, 21 Nov 2022 01:42:08 -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=Kk6798SW; 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 S230112AbiKUJJw (ORCPT + 91 others); Mon, 21 Nov 2022 04:09:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230081AbiKUJJg (ORCPT ); Mon, 21 Nov 2022 04:09:36 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE1888DA4A; Mon, 21 Nov 2022 01:09:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669021771; x=1700557771; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=iJBlNMxuMvGuPsHeEWP0axMcKV69XdXooK27Jk8W2iQ=; b=Kk6798SWWmiOO+7nmP38fcEMm9sfsJpH1cw9i+Kz6Jp9jK+CburriOZN k9YQoa1AW8RV73aonDbnBPX3bGbDZMr/O/6ylaBCtDYEfz5RNJMIGHsVr Gtglu2AzKD8CcUF14GX3NukSTY9115F/gpfQ4tzWJ9qDWyRYFMQZPnioJ aiU4M5b1NG08KQBLrJj+YFI+zpMCOYIp03RBDGtese/JIhX+T0lfYqRp3 RJ9VGzqlLfjMsBpUnknIsx6MNoG+O1O1smiglDNDdcaV6ZBCUUM0rMKUa aQPRw1CebZXylYbVUHWsot/oX05/QJ3dxXOvNFQrYJ22fY46jfxEPoKpl A==; X-IronPort-AV: E=McAfee;i="6500,9779,10537"; a="293220961" X-IronPort-AV: E=Sophos;i="5.96,180,1665471600"; d="scan'208";a="293220961" 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:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10537"; a="783377981" X-IronPort-AV: E=Sophos;i="5.96,180,1665471600"; d="scan'208";a="783377981" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga001.fm.intel.com with SMTP; 21 Nov 2022 01:09:24 -0800 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 21 Nov 2022 11:09:24 +0200 Date: Mon, 21 Nov 2022 11:09:24 +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 , Sing-Han Chen , Sanket Goswami , linux-i2c@vger.kernel.org, kernel@pengutronix.de, Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 583/606] usb: typec: ucsi/ucsi_ccg: Convert to i2c's .probe_new() Message-ID: References: <20221118224540.619276-1-uwe@kleine-koenig.org> <20221118224540.619276-584-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-584-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:17PM +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_ccg.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/usb/typec/ucsi/ucsi_ccg.c b/drivers/usb/typec/ucsi/ucsi_ccg.c > index 835f1c4372ba..46441f1477f2 100644 > --- a/drivers/usb/typec/ucsi/ucsi_ccg.c > +++ b/drivers/usb/typec/ucsi/ucsi_ccg.c > @@ -1338,8 +1338,7 @@ static struct attribute *ucsi_ccg_attrs[] = { > }; > ATTRIBUTE_GROUPS(ucsi_ccg); > > -static int ucsi_ccg_probe(struct i2c_client *client, > - const struct i2c_device_id *id) > +static int ucsi_ccg_probe(struct i2c_client *client) > { > struct device *dev = &client->dev; > struct ucsi_ccg *uc; > @@ -1482,7 +1481,7 @@ static struct i2c_driver ucsi_ccg_driver = { > .dev_groups = ucsi_ccg_groups, > .acpi_match_table = amd_i2c_ucsi_match, > }, > - .probe = ucsi_ccg_probe, > + .probe_new = ucsi_ccg_probe, > .remove = ucsi_ccg_remove, > .id_table = ucsi_ccg_device_id, > }; thanks, -- heikki