Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp311487rwe; Fri, 26 Aug 2022 05:37:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR7r8u8SVNyLc2cx8EV6TtbKnn2JDYjn5Ym8VStHAkepgpAHTFY/MXgo7g79CCWoajxA5cqc X-Received: by 2002:a17:902:8606:b0:173:dd7:403 with SMTP id f6-20020a170902860600b001730dd70403mr3657005plo.69.1661517438644; Fri, 26 Aug 2022 05:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661517438; cv=none; d=google.com; s=arc-20160816; b=tQ2TveslOGBTWESFqn74kiQB22KFHJ7a2ISkuBMhq5xxL4bt98jq8wOkFJW5csejmX jCCSzoMqOfVL9u1x+JhzlnhTKqm2cVliEt3IVsRqFQU2aSqmuMBlG93zawkBVHX1rqcV mzPvOY6WtpGSpDHisjq4MVE8Elh9emINxtne9Xe9Bgb7yYhdYVgrTtmlWwSfT8K/s8b5 USodBAzgYlQSLeqorUMbfNOqWnLu1t9g3Hskqh4au24/Y5nNs1DzNYklNauWDUl/lOSM rHF8j2sNbR2wsj7RxHNlcxyJEmZdfSSHVpf7UhYk3/XrZXV+D8Ccv8/xFHzldn1Mbkm9 K9oQ== 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:sender:dkim-signature; bh=ABA6MOjoBqLgAQYvm4GjUj7yyml/Z4V8cSOkonOq26M=; b=sHwx6f0L/yKzr0J9KLUlkVfKbGg2XlbPSDpsMXTGTlYXq6dByzjgfkocCt2/7AGIrv cqSkOMdyIIjkeoF/vRqWLNUApZC7zhOZe3GH6BF87xb8hzp1L2iz6becNj4aWYHEu/H0 yoJiv2pqMuiqFrR/KZI1IJRbUHr8+7MZzo4WAnJ4MFxbQjr43/P1n6Xu9t3maIYp96Of PA5wV7nAn3J8C1lb7excRwZoieXWx5nVgcft1x3R8vDWtrzAeOcsAa4dd8nL/GOLaJss psVBgPHrLsrLmv00iQ8Tnm4xNvgFm94rPKyDXK2wAh2okwVFZsfJFo/5dpFnYu2eTm0i 3PxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pwh2HRet; 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 h10-20020a17090a710a00b001f588cd3526si1803889pjk.50.2022.08.26.05.37.07; Fri, 26 Aug 2022 05:37: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=@gmail.com header.s=20210112 header.b=pwh2HRet; 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 S233093AbiHZMXx (ORCPT + 99 others); Fri, 26 Aug 2022 08:23:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343946AbiHZMXi (ORCPT ); Fri, 26 Aug 2022 08:23:38 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B403FC38; Fri, 26 Aug 2022 05:23:31 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id z187so1375413pfb.12; Fri, 26 Aug 2022 05:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc; bh=ABA6MOjoBqLgAQYvm4GjUj7yyml/Z4V8cSOkonOq26M=; b=pwh2HRetkTW7Ka8kEqlRhKBD2Qm08Iccfe/AjJYbPiDUbLnzx+PzxJDgHVXT2wV+u7 fhw+jsFZ+doPe1aFfTLCbsP/YjoCHywMEkLr3t8CyFYAYuZH4A/FfBIo1apvpjo3u6kP 3xN5fTTV0RJfn2JJV8zu1Lw6ht0RjKlyX76z8Bk7EeIipt1nSVGes0D6YTNqLeR+/GU7 qB7jTjSc+SIDkiOQ5R0bDltLWSdUNFB2hBNnxU8T24dykYOfezy80yHV8n/jnAQTFUpA Y89JYmxldPs92iu1+6G43EnxGHfu88Trp7LGiIqBxb3VIUx3VpOOWHrmXG2tqtBkSQoW g32A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc; bh=ABA6MOjoBqLgAQYvm4GjUj7yyml/Z4V8cSOkonOq26M=; b=XKhTPv7MgOovBGNvSarPvITDeuPh/4JXr7zKyhRovva59VD0FDThvPp9e9jguIINM7 9VWueebGwZMw6L9LbyyZiMJn7xUbXtz+h/DcDFCar+47JrFCt/tGiDL9G8/QlLImB4Xy 2WiumvvLkbq784AbLGLslIy9GZi3rssBRi1ahC3VH+txiCd/xYawCNAtiWxfP/vUP76R uZhAxScpEnz4KJJ836SbQ1DFm1K3qp6XUrjjlGchXAPWOcUaAxfADGFthnmp8SC047mU HSjqUfGGGX/lKUUdNdTYVQSQO2E0HxnuBmUEt2fj7bSzjYg+HckAksp3egUcC0A+o4rT MoMw== X-Gm-Message-State: ACgBeo0xhV5SqS1ZUTChPCMSJfKqgDeFmG/y2oHi6JXUTiaK57MNcibW P5bYkGi3WWEhvy8RTUODbCY= X-Received: by 2002:a63:b24e:0:b0:42a:b42b:3826 with SMTP id t14-20020a63b24e000000b0042ab42b3826mr3014232pgo.605.1661516611212; Fri, 26 Aug 2022 05:23:31 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id h7-20020aa796c7000000b005364c8786b7sm1583474pfq.215.2022.08.26.05.23.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Aug 2022 05:23:30 -0700 (PDT) Sender: Guenter Roeck Date: Fri, 26 Aug 2022 05:23:29 -0700 From: Guenter Roeck To: Armin Wolf Cc: jdelvare@suse.com, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] hwmon: Use struct definitions from header files Message-ID: <20220826122329.GC2897306@roeck-us.net> References: <20220825214341.2743-1-W_Armin@gmx.de> <20220825214341.2743-3-W_Armin@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220825214341.2743-3-W_Armin@gmx.de> X-Spam-Status: No, score=-1.3 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, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, Aug 25, 2022 at 11:43:41PM +0200, Armin Wolf wrote: > The structs attribute_group and device are provided > by linux/sysfs.h and linux/device.h. > Use those definitions. > No. The limited definitions are on purpose, meaning the details are not needed in this header file and that drivers using the structures must include the necessary files directly. That is what struct declarations without details are to be used for in C, and there is neither a desire nor need to change that code. Guenter > Signed-off-by: Armin Wolf > --- > include/linux/hwmon.h | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/include/linux/hwmon.h b/include/linux/hwmon.h > index 281387ee03bc..e8acc35af12d 100644 > --- a/include/linux/hwmon.h > +++ b/include/linux/hwmon.h > @@ -13,12 +13,11 @@ > #define _HWMON_H_ > > #include > +#include > #include > #include > #include > - > -struct device; > -struct attribute_group; > +#include > > enum hwmon_sensor_types { > hwmon_chip, > -- > 2.30.2 >