Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp223976rwl; Wed, 29 Mar 2023 00:24:15 -0700 (PDT) X-Google-Smtp-Source: AKy350YD1UO3r+ooly5roejKSym/alrj9WpmvFlxs8Eb7H1yI0MSa8wYPJN8xypWmwnLy4ZUr+Sq X-Received: by 2002:a50:e614:0:b0:4ff:5faa:5581 with SMTP id y20-20020a50e614000000b004ff5faa5581mr18376282edm.11.1680074655235; Wed, 29 Mar 2023 00:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680074655; cv=none; d=google.com; s=arc-20160816; b=bs/oX4FkYy/GEDwZJVTVN8AowprELVDlzL2Kr4M3hJukq7SOSrWk2IG+fBOATUFucE wbOihC8PJzk5ZbW4eZcikZ2OP2xlofMx7nXWrxRCKmoLu94JtDsKPXG92w4BO04zoDn7 +HghuI4vwkXF5J8ocLRNf+p/CoowOMV/lWxQi6U79pe4L2JCYOWgwFjjqjeVyeDw7SNu PyPyk705qQXgyEZADaLKrAyn4qFwUY6mkdcjIhMb7PthrMhkEQ2cdQIZLuWdnf6fqCgP K7xxzfSJ6+zAoLRYkgBz9Q7dzxH8Kt/VYHKGS5roI3q1F1mnEvCjk1nUR+f/+sMPkC9F mUiQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IRMQ4Jfm4chgc2TIbfvCi3+ZY9L9oWxdB+Kv61OAVhE=; b=c2kZB0VUqU4qhGqKsghrPWifaYMoSMF9b+9a6qdSvo39nfOz+k4g93Vp5o2RnM8M2g 3vB1XU2IvK6QlJfBNyZfMKTAjVAmr+HbC+cK13yicDWyrSf19VM3KHxbQoPTfnBAuJcQ /bbJMh9e42xgIQ511fBdNiSJPFWmIdQKisnEYJNpNlQ1d5BQMoWOP7ADKJVjeEaJTvrz Xv5ADMBPjhucrAqqHM3rtV87dBMhfcfYaFRYPy8G9D3iZRjVdsyNqXh0ZqorVMKUDR3b mESJTyyGMM+rjxRJlRHpPxzsTe1U0yGWczKCk3XbK0sL4dQHsy/h3xPbHJWTgLmlMVLF oAdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ALo5g5Ro; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w2-20020aa7cb42000000b004fafc269d55si32964549edt.113.2023.03.29.00.23.50; Wed, 29 Mar 2023 00:24:15 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=ALo5g5Ro; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229679AbjC2HSN (ORCPT + 99 others); Wed, 29 Mar 2023 03:18:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229962AbjC2HRr (ORCPT ); Wed, 29 Mar 2023 03:17:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4B97212F for ; Wed, 29 Mar 2023 00:17:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 89EE5B820CE for ; Wed, 29 Mar 2023 07:17:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44B60C4339C; Wed, 29 Mar 2023 07:17:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680074256; bh=8NqDjRTRKipEiN3vLd2EfoPDzeFYiHCobShVCw9FOu8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ALo5g5RoztptCZ7+qf9zjmQXAx6//O8hK04IgLj924HzskFe5QrCjhRb5KQW6Oopu EBLj6X3sV2SM6mrQuEjuV4KIFuKQAdR+Zmk2SQb1sC7VrZliXMmLXr25B+bI+1I/r1 wPMkGEnfxxLoma9hmSrDPS6/KNTLQMBAbS8sgfdKvO7bsxv2ovE1c5Vp7kDwMFNmN5 Dix90RfJ6RHcYFIq/H/LeDgXbSppjzrk7vGdvrIQ/4QLwGVyebj4Q1AIK+Xn8jpycL zPmTS4nGKyOK87hEbucozv+MQSA2bTLsyW45ul9sdm2P7Lmy84mDGHMR2GyUrLjjZv F29kUP4O3/b8Q== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1phQ47-00055h-BH; Wed, 29 Mar 2023 09:17:51 +0200 Date: Wed, 29 Mar 2023 09:17:51 +0200 From: Johan Hovold To: Guiting Shen Cc: lee@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd:i2c: remove redundant dev_set_drvdata() function Message-ID: References: <20230329055724.43998-1-aarongt.shen@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230329055724.43998-1-aarongt.shen@gmail.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 Wed, Mar 29, 2023 at 01:57:24PM +0800, Guiting Shen wrote: > the i2c_set_clientdata() is the inline function which is > complemented by the dev_set_drvdata() internally. Do not > need to use the i2c_set_clientdata() and dev_set_drvdata() > at the same time. In the future please break your commit messages at 72 columns or so (not 60). Also the Subject should have a space after each colon (or that should have been a slash, but in this case you should probably just drop the i2c bit) and it's really not the function that is redundant but the fact that it is called. Perhaps something like: mfd: remove redundant dev_set_drvdata() from i2c drivers > Signed-off-by: Guiting Shen > --- > drivers/mfd/88pm80x.c | 1 - > drivers/mfd/88pm860x-core.c | 1 - > drivers/mfd/aat2870-core.c | 2 -- > drivers/mfd/lm3533-core.c | 2 -- > drivers/mfd/max8907.c | 2 -- > drivers/mfd/max8925-i2c.c | 1 - > drivers/mfd/wm8400-core.c | 2 -- > drivers/mfd/wm8994-core.c | 2 -- > 8 files changed, 13 deletions(-) Looks good to me otherwise: Reviewed-by: Johan Hovold Johan