Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5614944rwp; Mon, 17 Jul 2023 07:02:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlE0rPfG7YUcApbYZ49eCPy8VOOBqyf/9wnWpZMuK5x0bKO374l1kJBozAWfOgskzGw4nicn X-Received: by 2002:a17:902:d483:b0:1ba:fe6a:3845 with SMTP id c3-20020a170902d48300b001bafe6a3845mr13798836plg.11.1689602569588; Mon, 17 Jul 2023 07:02:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689602569; cv=none; d=google.com; s=arc-20160816; b=UAlRcNTTx6+tovy48zgx5MLOkRIResnFX2vnLYvyX++btb0FCRPQMSOAbvP+Fhn630 icJes4oKqNO6DysTxPoVPafkmrBFgCL8FUCLdN6b038eh43MOy9vA1sKNxv82tQE9OqI SKJF+QK6qvFMgl1O3cpuHT3bUfcjH8GO4r4a0t5xnqgMG4GSbmmwmXKVxNZ5zILNV3en siJLMarYH08zjA2IO9Q0/Mz1AeZUheiwMybVzpIafm5C/b2bw3ngUPbsn2qLVhl8dZOV yNdM4IBjjaXpWcy47BxnUc+xp6WfA2rIH0fk9RBvXz36mwaGqN0mXQgrpM7/ffBjormb h4Hw== 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=dTAg/LSNCBI6ZFONX1CLMxkc17ETkRpnhDbx+OyQQ+w=; fh=OWPQEfJB79UOkPyeVmLNcbMQAf5S5ug3pRAGVA0cckM=; b=WKPEQzCMvRerpF4gBDa/0fL12ltPKtpVhwtrMpDKUYeTVd8lzesV/QJvd06masuldq nLn+OJDW8efasuMG4Mz7kdXDfegEI2e+6IoJEzENk3PYDS0i8PnDacbeJLE4ouCRpK7P +oqMLWKrSHgUExEvJfZXqOlzmrAr1QOwIMh0FpiF7kFGcKzSn9TCf2uQm648DrAHeFjT 7E9ETTpW0IqpMLzdckRG4tLaqHQ/jlYo6heqqM8dD8TmBT2cjf1iFSo105F4QACVv+N5 DVgAf9pLUmgzIr74iBxWZW3AXfdI0onGdNA5uIJUnDUFSyb14R0nhv6lZWpG+KknsN9K 3NZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BWypn2mO; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m3-20020a170902e40300b001b8010ad924si11027912ple.103.2023.07.17.07.02.29; Mon, 17 Jul 2023 07:02:49 -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=@linuxfoundation.org header.s=korg header.b=BWypn2mO; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231360AbjGQNmP (ORCPT + 99 others); Mon, 17 Jul 2023 09:42:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231337AbjGQNmL (ORCPT ); Mon, 17 Jul 2023 09:42:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E36DBF5; Mon, 17 Jul 2023 06:42:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 694936106C; Mon, 17 Jul 2023 13:42:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E401C433CA; Mon, 17 Jul 2023 13:42:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689601323; bh=HtFGR+geO3qjGXwbgGRT8YDxhj8Z9Njkjftz8qO4RmM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BWypn2mOv0G5TpzeFCkIigeK0mRptPRfFDUQJQDnRbBtybJd0bhNg1jWsM3OlvEtt qsHwq5LPTx7z/FgDGpIxheMaF6NAiutwTiPFvRjHdzyU74EWczfEiEhkW9BUSRObO7 oQaxR4jZbp+fBXgUaYxH5tx22wJWE5llur6+tfpw= Date: Mon, 17 Jul 2023 15:42:00 +0200 From: Greg KH To: =?iso-8859-1?Q?Joaqu=EDn_Ignacio_Aramend=EDa?= Cc: linux@roeck-us.net, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] hwmon: (oxp-sensors) Move tt_toggle attribute to dev_groups Message-ID: <2023071726-zap-sesame-c8ff@gregkh> References: <20230717124013.38796-2-samsagax@gmail.com> <20230717124013.38796-3-samsagax@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230717124013.38796-3-samsagax@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 Mon, Jul 17, 2023 at 09:40:04AM -0300, Joaqu?n Ignacio Aramend?a wrote: > A driver should not be manually adding groups in its probe function (it will > race with userspace), so replace the call to devm_device_add_groups() to use > the platform dev_groups callback instead. > > This will allow for removal of the devm_device_add_groups() function. > --- > drivers/hwmon/oxp-sensors.c | 38 +++++++++++++++++++++++-------------- > 1 file changed, 24 insertions(+), 14 deletions(-) Nice, but you forgot a signed-off-by: line :(