Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp711807rwr; Thu, 4 May 2023 08:38:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5NwViYXWY9z546nnqT1KW+uikucPw7a+65aCM5H6qghe/pZeHTTBzrmJccAjyZpSAMPiex X-Received: by 2002:a05:6a20:918a:b0:f4:ac2d:8ea0 with SMTP id v10-20020a056a20918a00b000f4ac2d8ea0mr3004589pzd.32.1683214719001; Thu, 04 May 2023 08:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683214718; cv=none; d=google.com; s=arc-20160816; b=TNQVnIsqMU9PZi6XwHYwmaUnoYxR74tEdqVOpJnqNRaz+KivVpRjo5M2/UBK3BCTut iJ15R8D8QQ22lV5a+39wLzCNFq+0pxh/TWBm9h5qvR3BaKKPPUHuW/KuT21hTLpIzx9I 7uGxZJt1Cg3Aggc290/ZM66qZMlpaJFXxmw4dqMGuw5VuXbyYm/2H2KZqmEQfColyERH T/BGIVZlyydraSiq34nFe4+CFjXtKjMOJkJXu4KHQsx2HdE7SZ4jr5WN4Pt3d14OSYt8 /CGMJcSZ0L/t1BCpRYOFbm6wP9dN7HpbmPikEHAGqisfvTJ/eUHnmgbmnKjlQ3xKIGFa ms9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:dkim-signature; bh=oVmgbsTTYAE2SuVdpLUJpCznPOcGAHHuXu5H5Lu16ck=; b=Lgf3J8/7MQypJzTfJiBDDFrkMDeUBFoCW7DZ1/i2tyYZnHRpUfic+MTdanI2RYetrR WYzs13Tmo2x81BAFfvbs38iCljRVf4Qa+HlK6ov1xdlPSjMy1ARZpEm/5ip+MoRwiIQT n6Ap5vvRdB/b1U3DBem4LJoVIxEWDctacyKiwPEiEKErG4Ik8RthcahbQc/rB0So2fWV yhfx/WM8idy9UfS5UFIGmV/6aWynfvatS7sO0+r4o+sX1PdlaRBacH3I3vHB/qZRyCQm h8a9G1KbHjpJ28RajofOGeom/GngDwa0hhNoqjGT+EQuHxMl1a2xakEKTKJbr7UMSWXK 27nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=FRo6MVK4; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r10-20020a632b0a000000b005286d7712d1si24942319pgr.672.2023.05.04.08.38.27; Thu, 04 May 2023 08:38:38 -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=@gmail.com header.s=20221208 header.b=FRo6MVK4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231336AbjEDPaB (ORCPT + 99 others); Thu, 4 May 2023 11:30:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229872AbjEDPaA (ORCPT ); Thu, 4 May 2023 11:30:00 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F4CB1BF6; Thu, 4 May 2023 08:29:59 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1aaec6f189cso4242955ad.3; Thu, 04 May 2023 08:29:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683214199; x=1685806199; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=oVmgbsTTYAE2SuVdpLUJpCznPOcGAHHuXu5H5Lu16ck=; b=FRo6MVK4pbbaummo1xXtvLlSdNifl2sLcDFkIyPqaYEWofH7TQ7irGQq8N7WTPD0U9 Aa80lrKNWnjMrmi/4Dr2BZK3gPxPnrC4U5FSy89DjaKShSBAvvEVAVpavo7w6kQdz3kW vTLcdjseD5sjMU1IqV3LXyB6PLedXXI7xs2jW1yRCRWJTcgLpxIjQgSwayh3AB9lABsu Q5N2EzLEiVXwtQ+mNJtqSxVysuyfetGFuTolFVWkTM5xt1RaAa+4E17NiqFmiIp60jaq Xv+eKgUr++Vqa1b95SCAldDu/NNbRv19vfSxBvN264hU0vy3EGPmZr8Ur9zGeSrw3Ne4 l4rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683214199; x=1685806199; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oVmgbsTTYAE2SuVdpLUJpCznPOcGAHHuXu5H5Lu16ck=; b=EbcH4xEWTbB36q6AbDM4DxGO3p60YiXnl/MFe6dqoDh1sUFZYLkfdgXVZcGdywyuw/ rSkjT5kpvGlxdn09Hw7Vd3ZBEhJAw+lzznbsXNSlGpp6+378uGRC5y+LdOTjjKkVCccu +dU5tMUQZTkXuLcDtIl3pK4iXo86u56nxr3oc6wUJXwYuWdoA/SXLvgHyzNyqum97zgw zaYZgzRby5Pg1MHanm7/UkSua9IcXLPNFybTp7uH3o8mSZj/2mBmhr/SyZ36evy9DTCU 2VQTLEl6Lb60WNq5tUyBhzTV/jZ/LA+/UQMWUJPXwzALZKBi6FiUBvlf8de52STR6PVp 87hg== X-Gm-Message-State: AC+VfDzo4dihVFgONKabIYMSGj5NmDtuRkOO26TdGX5CqK712GuB6//G nzlyvA7W1Zohy07SICs6aXTq7aCenLA= X-Received: by 2002:a17:902:7048:b0:1a5:a1b:bbd8 with SMTP id h8-20020a170902704800b001a50a1bbbd8mr3480874plt.45.1683214198998; Thu, 04 May 2023 08:29:58 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id b3-20020a170902bd4300b001aaf83873dbsm7431099plx.162.2023.05.04.08.29.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 May 2023 08:29:58 -0700 (PDT) Sender: Guenter Roeck Message-ID: Date: Thu, 4 May 2023 08:29:57 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [RFC 02/11] hwmon: (core) Rename last parameter of devm_hwmon_register_with_info() Content-Language: en-US To: James Seo , Jean Delvare , Jonathan Corbet Cc: linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230504075752.1320967-1-james@equiv.tech> <20230504075752.1320967-3-james@equiv.tech> From: Guenter Roeck In-Reply-To: <20230504075752.1320967-3-james@equiv.tech> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 5/4/23 00:57, James Seo wrote: > Change the name of the groups parameter of > devm_hwmon_device_register_with_info() to extra_groups to > match the name given by the hwmon API reference and in > hwmon_device_register_with_info(). > > Signed-off-by: James Seo > --- > drivers/hwmon/hwmon.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c > index 573b83b6c08c..5f205686065e 100644 > --- a/drivers/hwmon/hwmon.c > +++ b/drivers/hwmon/hwmon.c > @@ -1029,7 +1029,7 @@ EXPORT_SYMBOL_GPL(devm_hwmon_device_register_with_groups); > * @name: hwmon name attribute > * @drvdata: driver data to attach to created device > * @chip: pointer to hwmon chip information > - * @groups: pointer to list of driver specific attribute groups > + * @extra_groups: pointer to list of driver specific attribute groups > * > * Returns the pointer to the new device. The new device is automatically > * unregistered with the parent device. > @@ -1038,7 +1038,7 @@ struct device * > devm_hwmon_device_register_with_info(struct device *dev, const char *name, > void *drvdata, > const struct hwmon_chip_info *chip, > - const struct attribute_group **groups) > + const struct attribute_group **extra_groups) Please please please no such changes. I don't want to have to deal with patch wars just because people believe variables should have other names. Such changes add zero value unless one counts wasted review time as a "value". Guenter > { > struct device **ptr, *hwdev; > > @@ -1050,7 +1050,7 @@ devm_hwmon_device_register_with_info(struct device *dev, const char *name, > return ERR_PTR(-ENOMEM); > > hwdev = hwmon_device_register_with_info(dev, name, drvdata, chip, > - groups); > + extra_groups); > if (IS_ERR(hwdev)) > goto error; >