Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6864342rwp; Tue, 18 Jul 2023 07:00:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlGAbMLJtNf5hcN0+bBsoAPOhLRPA//OvukyI2j44SkibNWbnQqt7Z08jeoQcNdFryswUMLC X-Received: by 2002:a17:906:118:b0:991:ed4e:1c84 with SMTP id 24-20020a170906011800b00991ed4e1c84mr1999eje.25.1689688818743; Tue, 18 Jul 2023 07:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689688818; cv=none; d=google.com; s=arc-20160816; b=IEUYNWzEPV8NnvUruasR9NlIO9jGwMVgQMjxYJQDogZZR+xxPSfX4XBDZYUCuv6I57 Xo1i2iHNrKbjRBiNd4OnHmY4CxU3OYRMtDK4FMveiIWWz2h6t4K27eD+uVKLnstR2z3g ka6P09iWUYOB5dfDbvGQbFLKZdTqkc95al3Vvnv9HsZz/bmAK5SdrjVu8BSJirlzk3HI 1bgfyqDF4hmRcIEo7CO+1ZVXVhX7aS09rRvkSP0+Dw3ZweLzN0Y4GrTVBgySX42LL8pp sOvMb/AeoiIVQ11Xxu8E6+6qhRBu8IA2YKvZBJPL0jX3H3WlRv6jmE30gsf/EhMXKe7K yBUQ== 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=86FMlNYwISkTw1LN+lJ9ALOykxhIsTH0Wyunt98U0Fk=; fh=OWPQEfJB79UOkPyeVmLNcbMQAf5S5ug3pRAGVA0cckM=; b=JswC9wOsUh8VKskB6abt1O5CdegrfQnzs20+KToAUOJViPIOSnOPnWloMf1n6aYGFA 0uqtB9ZNwNmAAsjFfWLNs8BhINsMsG8va3swtl5Ck+pdpVkJV1/GUCPUX20OB3ua+zHS 6zLZFKsPGsND/FtKhdcv8wxsre97Eaz/RANhhy/ska2FAqVwJNFwlGpjq8/mKpyLYoWz gg3/HuDwWWuJKT4OtxmMvbmggFn/nicsFGSxAoPGUh8LXF9szUsjT6HAeYHTlRbf6P2c RTYvGaxV1IL/DcMImM9L52loBYpunRbphIiyigAKybHoUBrHUwCPvaIDIGYTPoUR1rvR p3qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eJh+dxdk; 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 l4-20020a170906230400b0099283d7c2f9si1085686eja.383.2023.07.18.06.59.53; Tue, 18 Jul 2023 07:00:18 -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=eJh+dxdk; 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 S232218AbjGRNjx (ORCPT + 99 others); Tue, 18 Jul 2023 09:39:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231782AbjGRNjv (ORCPT ); Tue, 18 Jul 2023 09:39:51 -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 C2F2DE2; Tue, 18 Jul 2023 06:39:50 -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 573D46159D; Tue, 18 Jul 2023 13:39:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18971C433C7; Tue, 18 Jul 2023 13:39:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689687589; bh=wdUTpb0o1wPjWzbJ1rwW7sqrwgkhsYIgkYya3m2XxDE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eJh+dxdkpEgciP6IN6IfzpBqYfDHHjWQRGUny1opyh2wcilikq2iuf1m4SwuFchLs 9MCZdHSruCHaYBO8WBdIJJdLjSFLIHtsq0BU4aItjy0z5ppKmhIldSyVs+i0EwhHvU 3DlKHSISVL9NcIZlvF8KtPmT3yVXNyuKoreNTiyE= Date: Tue, 18 Jul 2023 15:39:45 +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 v2 1/2] hwmon: (oxp-sensors) Move tt_toggle attribute to dev_groups Message-ID: <2023071838-powdered-unsmooth-1015@gregkh> References: <20230717222526.229984-1-samsagax@gmail.com> <20230717222526.229984-2-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: <20230717222526.229984-2-samsagax@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 07:25:15PM -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. > > Signed-off-by: Joaqu?n Ignacio Aramend?a > --- > drivers/hwmon/oxp-sensors.c | 38 +++++++++++++++++++++++-------------- > 1 file changed, 24 insertions(+), 14 deletions(-) Reviewed-by: Greg Kroah-Hartman