Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1101181rwe; Thu, 25 Aug 2022 15:44:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR5sfNoHvuVpZCoUfnwZA5Wxx0gcBSmABaodvh9q65aoP1x2JZjGNgKsiI8109+PRbNNqWyp X-Received: by 2002:a63:2051:0:b0:42a:4611:a207 with SMTP id r17-20020a632051000000b0042a4611a207mr1009785pgm.62.1661467475002; Thu, 25 Aug 2022 15:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661467474; cv=none; d=google.com; s=arc-20160816; b=BV+8nQX+3dyT/CuKIFT8fgYS5p47OOf5Q7B/gZdvz+t7vmrZWi+ORDie+bHHp8bHaO QvPZn1xyq+4sXV+Wb6WY4/AOwZCxFwesTUzE2OKkwQFu5DJ0EEt+2MybAPS/xb10626o H+GTLzBPqt8zRWdFCZ+9QfizpvhjCSyRZ2v75s++GZYUbx7PsktsPKKDDh9ZGk2eYpKf lyymly2qYIhbVB26G072/RLrUr9s0P98vQZAto5dh9ZH/NYpiwugal7irPrh+H21bIzn fHCSLMv5VUAxflYICzg37qFKIE6FypgQpvdcqTe+GWuFoIeSj38ik/9ojEziLf2xK73F RZiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BfqFzGwggRbetSBlklqag14BbJe63IJ8J+9Oynl6T6g=; b=jid+bZ8acP/8bXrd0d/LP1KaIdFvtTM24JUu8A+nePhgefhhFau/QxsROJl7n2pwr5 SCNgjeVE1BiKxLAyjYzXVNMb1d+elfC18Z96WQ3cUo6XSHpaRtMRQxZzFNLtebDmvMJe PviNBvAG9E43GtEu1eYTaOvE0RPUsjU9xlsslkbHr7ki5yvc9zFZCp/Uil5nOYFb+p/N +HbKO7XX7692l4z2YXtvuWNk68zYZCrvrOnmWCg1b1yx5VGFzx5LPOGf2xUomW4g7ztL sXCNyESuuF2ZGQM3WZvABhcfKLgovN/m0TdSg4lcWJJvf7R0IFFg8csZNhGw2g662X/V +3fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ZzQGLdyn; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w184-20020a6382c1000000b0041d0a3e7de3si224483pgd.796.2022.08.25.15.44.24; Thu, 25 Aug 2022 15:44:34 -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=@gmx.net header.s=badeba3b8450 header.b=ZzQGLdyn; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243980AbiHYVoO (ORCPT + 99 others); Thu, 25 Aug 2022 17:44:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243955AbiHYVoJ (ORCPT ); Thu, 25 Aug 2022 17:44:09 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4123813F34; Thu, 25 Aug 2022 14:44:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1661463832; bh=jWvRUQJzDOtaEy3pXgAUIpJPwFP33xU9hfELC3WPiDw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ZzQGLdyn6VT0ZhQVnSTV2xqYHD4cXeZXS+GJlsSDB5GXidYvXCoLHJ71FLr67Qk8M OpvPZjcbylfBthx5S8Zd25z2wQyp+9RLjXhyAivBD+MLOeG6FWpJWf561fmVNH0ImZ w0mdnVkL/uuv63ksyHM8R6jRPBsHTvS1GtPsqT04= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from esprimo-mx.users.agdsn.de ([141.30.226.129]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MryT9-1pCC7R2hPB-00nvkB; Thu, 25 Aug 2022 23:43:52 +0200 From: Armin Wolf To: jdelvare@suse.com, linux@roeck-us.net Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] hwmon: Use struct definitions from header files Date: Thu, 25 Aug 2022 23:43:41 +0200 Message-Id: <20220825214341.2743-3-W_Armin@gmx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220825214341.2743-1-W_Armin@gmx.de> References: <20220825214341.2743-1-W_Armin@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Z4saCYK06JySxAMMuQQu9/i7gk6+S73O/Y/zoOHr7fFJFm9gyNJ z/e4NG5xIFYMYYdxZjtj0yRfVmgQ1/RgBh9++HD1rTiLWbTW41FuEsDPSjgPa/Aok7ShMfS FwcYAILt1nQMBFhQq9hIWjq5RrW+6GfTTvueTsSPYH6Q03gQAPsWyVzIIA/vn/HpE51O7ki WRYLetAOT+WLzQlB8yyKQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:BG9FJL6A5Zw=:WP2z1/CbQmxygIngGGkCac wnP5Ie4Oc9KC8RAc3l+FmgLJTPLqPFWHYFnRRc75NYZvm3FOyXrRapCgWUVE+nhvA/Tkz83y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No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2, 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 The structs attribute_group and device are provided by linux/sysfs.h and linux/device.h. Use those definitions. Signed-off-by: Armin Wolf =2D-- 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 =2D-- 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, =2D- 2.30.2