From patchwork Sat Jan 21 08:57:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Crawford X-Patchwork-Id: 13111029 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C478EC38141 for ; Sat, 21 Jan 2023 08:58:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229826AbjAUI60 (ORCPT ); Sat, 21 Jan 2023 03:58:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229814AbjAUI6Y (ORCPT ); Sat, 21 Jan 2023 03:58:24 -0500 Received: from ipmail06.adl3.internode.on.net (ipmail06.adl3.internode.on.net [150.101.137.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AC9041E1FB for ; Sat, 21 Jan 2023 00:58:20 -0800 (PST) IronPort-SDR: n726zeWZaSRvGMCiQj93ptS+jeOVpPuXBen3tclTn40cfSQM+xA1CSf4yRwsrYSLFVbKi7UxpQ 8xW7gRJMxk2nvEzP79K0oCRJ7HlbNrnzSxbUG/nKuMvtnRXonVQz739NZNpz9wvN7Wn942E9/8 kq6dyTLQSKUBC1MWtPX7bzh1c0nhdjt9v+cfSy8QQ7hDHugUVnwntMyo5vIR8bflUdHwGBvJU4 uNJy0gdkT/q0jtMC6U4uuo/9wMetOexLzXpQJaHQdTofkB4TKSClwuRTTber1NDH7ek7qNQ7TH K2dINCk4G9w+BeFL2TZfDGS1 X-SMTP-MATCH: 0 X-IPAS-Result: A2ATAQDLp8tjjPQc8jxaHQEBAQEJARIBBQUBSYE0BgELAYIsgl+VbZ1BgX4PAQ8BAUQEAQGFBgKFICY2Bw4BAgQBAQ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cl+MI6AbvA xCB4NhXP7mNKfjJKl9JKVp3dPmH2NEVhiLWs6Y/LnL60ykrrrCJZloDbRCDhRtUIKZxLI54k /wqv9Qb6lLjhxcnboSGgyRT+zjeJ3AMSf985JsbHJStgRAi1V9Fe5CaByrrppCDLdxRaxF4L jiRjavEprJd2kubLSVqSymcgbsMiMRcog1OwX8DO0+NxIjPiMg36xsNoz45eRsEnBxI3tV6N nVvK0Aod76F+C1lhZYfUm3wSRtNAgaVph74x1cTzzeLERHtDDCXaTdtfLzRoAYC72tAfzMd4 KmXySDuVjOsddyohnk+XktsqvrCS91t91Scx5n5TpXZTsg3MWj/n6ujRWsUsB+7U8k/s0uW9 +Bl8dF5ZbD/KSNN8bYwDJOX1OpMRR2JTICYrSqNIE/U8bngRQyP IronPort-HdrOrdr: A9a23:AEQ20K+l8s/OxvvyUVxuk+ACI+orL9Y04lQ7vn2ZKSY+TiVXra GTdZMgpGbJYFR4YhwdcLW7VJVoLkmslqKdjbN/AV7mZniDhILKFvAF0WKd+UyDJ8SWzIc0vp uIMZIOb+EYZmIbsS+V2meF+1lM+qj+zEnRv5a68550d3AXV0h/1XYFNu9FKDwMeOGWbaBJbq ah2g== X-IronPort-Anti-Spam-Filtered: true Received: from 60-242-28-244.static.tpgi.com.au (HELO bits.crawford.emu.id.au) ([60.242.28.244]) by ipmail06.adl3.internode.on.net with ESMTP; 21 Jan 2023 19:28:19 +1030 Received: from agc.crawford.emu.id.au (agc.crawford.emu.id.au [IPv6:fdd2:7aad:d478:1:0:0:cb10:cc07]) (authenticated bits=0) by bits.crawford.emu.id.au (8.17.1/8.17.1) with ESMTPSA id 30L8vxu32985116 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 21 Jan 2023 19:58:14 +1100 Authentication-Results: bits.crawford.emu.id.au; arc=none smtp.remote-ip=fdd2:7aad:d478:1::cb10:cc07 DKIM-Filter: OpenDKIM Filter v2.11.0 bits.crawford.emu.id.au 30L8vxu32985116 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crawford.emu.id.au; s=s1; t=1674291494; bh=8F103dRLrYEfzlD604HLoT559+l4Xjd27vExN5AC28k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FTgM89o8q4+TY1Lq2G0wXRo4h9Y3itJKgm3+R1FY8wtJ8qmtHhm8D+4yPIc2l4Vdc po1DT7LjDDskTbap1eRmgwcHMl1OJldPCahppNZ2sXbVpkDEetXdxT553KnoKexr9G VgsPyErgiGM1wX7vAmr8RJS3Ye5JPxq4+ZxuEy8foT87H4Hz17fKZHayQfM4j9JZgE +KlabJ9as9u/2HRXOZHISCiY36DuB1Vbnt5/JVSXbGJhFygYszyLo5vMkLY6JgSYOU sgNNaEiNA7uWawNDcGXViJMaeRbTsWIPhLsE9DVFi3wYOZC8pmXawvmQaUt5X9IqmM 3b77XOnX1CPfw== From: Frank Crawford To: Jean Delvare , Guenter Roeck Cc: linux-hwmon@vger.kernel.org, Frank Crawford Subject: [PATCH v1 1/2] hwmon: (it87) Group all related MODULE_PARM definitions together Date: Sat, 21 Jan 2023 19:57:53 +1100 Message-Id: <20230121085754.1693336-2-frank@crawford.emu.id.au> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230121085754.1693336-1-frank@crawford.emu.id.au> References: <20230121085754.1693336-1-frank@crawford.emu.id.au> MIME-Version: 1.0 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.4 (bits.crawford.emu.id.au [IPv6:fdd2:7aad:d478:1:0:0:cb10:cc01]); Sat, 21 Jan 2023 19:58:14 +1100 (AEDT) X-Virus-Scanned: clamav-milter 0.103.7 at bits.crawford.emu.id.au X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Group the MODULE_PARM definitions together to make them easier for future maintenance, rather than having them spread across the file. Signed-off-by: Frank Crawford --- drivers/hwmon/it87.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index ee48e238e46f..a8a6a0ffee82 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c @@ -65,14 +65,6 @@ enum chips { it87, it8712, it8716, it8718, it8720, it8721, it8728, it8732, it8771, it8772, it8781, it8782, it8783, it8786, it8790, it8792, it8603, it8620, it8622, it8628 }; -static unsigned short force_id; -module_param(force_id, ushort, 0); -MODULE_PARM_DESC(force_id, "Override the detected device ID"); - -static bool ignore_resource_conflict; -module_param(ignore_resource_conflict, bool, 0); -MODULE_PARM_DESC(ignore_resource_conflict, "Ignore ACPI resource conflict"); - static struct platform_device *it87_pdev[2]; #define REG_2E 0x2e /* The register to read/write */ @@ -181,6 +173,12 @@ static inline void superio_exit(int ioreg) #define IT87_SIO_VID_REG 0xfc /* VID value */ #define IT87_SIO_BEEP_PIN_REG 0xf6 /* Beep pin mapping */ +/* Force chip ID to specified value. Should only be used for testing */ +static unsigned short force_id; + +/* ACPI resource conflicts are ignored if this parameter is set to 1 */ +static bool ignore_resource_conflict; + /* Update battery voltage after every reading if true */ static bool update_vbat; @@ -3457,11 +3455,20 @@ static void __exit sm_it87_exit(void) MODULE_AUTHOR("Chris Gauthron, Jean Delvare "); MODULE_DESCRIPTION("IT8705F/IT871xF/IT872xF hardware monitoring driver"); + +module_param(force_id, ushort, 0); +MODULE_PARM_DESC(force_id, "Override the detected device ID"); + +module_param(ignore_resource_conflict, bool, 0); +MODULE_PARM_DESC(ignore_resource_conflict, "Ignore ACPI resource conflict"); + module_param(update_vbat, bool, 0); MODULE_PARM_DESC(update_vbat, "Update vbat if set else return powerup value"); + module_param(fix_pwm_polarity, bool, 0); MODULE_PARM_DESC(fix_pwm_polarity, "Force PWM polarity to active high (DANGEROUS)"); + MODULE_LICENSE("GPL"); module_init(sm_it87_init); From patchwork Sat Jan 21 08:57:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Crawford X-Patchwork-Id: 13111031 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83AA4C004D4 for ; Sat, 21 Jan 2023 08:58:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229853AbjAUI61 (ORCPT ); Sat, 21 Jan 2023 03:58:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229795AbjAUI6Z (ORCPT ); Sat, 21 Jan 2023 03:58:25 -0500 Received: from ipmail06.adl3.internode.on.net (ipmail06.adl3.internode.on.net [150.101.137.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BEAAE23C61 for ; Sat, 21 Jan 2023 00:58:23 -0800 (PST) IronPort-SDR: 1VCPy/TMjot316m585NYqNr8V6IgtYtT6BFkppbA94wbnmQWIzvIzYeb+uOI3LQtOpqvTQ/wkT SlTgztzXkBgCrmgpOXCZfdbIxP7RONPq0vXO5DRm0uF5CG3LG9SY3salsurU4+EOCBrFpYTVzJ /qykzeSuH9YD7FeyC5fqBXcFfCXR+Gce0mOgMHEP03yoQsQVHXqdtzW/UMrMlKUnqN9dcPErBX /iKJX2Bm6U7TDoT3D0zwhleX4q0j9qOOAhQOWjUyCDYtQn3mDLOQjoWg6yhpZ2ahm/vufM+09N QMWqwnsMrRp9v+QhTWYVwNTV X-SMTP-MATCH: 0 X-IPAS-Result: A2ATAQDLp8tjjPQc8jxaHQEBAQEJARIBBQUBSYE0BgELAYIsgl+zLoF+DwEPAQFEBAEBhQYChSAmNgcOAQIEAQEBAQMCAwEBAQEBAQMBAQYBAQEBAQEGBBQBAQEBQBgBOQcLUgcLWAcHgUELgWETCwMxDYZXAgEDMgENAQE3AQ8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ixOrT/eJH0cSOMsrJgFDojxhkwmz0wEYJCaAzKvuMODbNBFM08LJ D6IhfOc2O0ClxufKyA+RSrXwO5QpZUSoxQUnlUMEFS+nIaXjPEAw0wD+Ds6eQ1Z0xFb3r8hI WNsLUB0e/mD8ms6nsRFRGzwSQhNCAfCoB6vkx5TyDecFRntDDCRanYhMPqM9wYF621dODNc+ feR1T+9Azrtecjw2Ao0WFJk8qK8FIIgp1Caws33Td6YG5QaYCb+hvP8b2Q/rUq1CMw8s0TLu O128bsicqb8LyMR/fE2BoTyOW78k/xYyLGumc1cwZ4= IronPort-HdrOrdr: A9a23:llTqJKsZesz09ziIVGhiJM1q7skDrNV00zEX/kB9WHVpm6yj/f xGUs576faSskdpZJlD8ersBEDkex/hHPFOkOos1NuZMzUO/VHYSL2KjrGSpQEIZReOlNK1vJ 0IG8ND4Z/LfD9HZK3BgDVQfexP/DEJnZrY/ds2t00dKD2Cc5sQkzuRFDzrb3GemzM2fqbQxf Knl7B6mwY= X-IronPort-Anti-Spam-Filtered: true Received: from 60-242-28-244.static.tpgi.com.au (HELO bits.crawford.emu.id.au) ([60.242.28.244]) by ipmail06.adl3.internode.on.net with ESMTP; 21 Jan 2023 19:28:22 +1030 Received: from agc.crawford.emu.id.au (agc.crawford.emu.id.au [IPv6:fdd2:7aad:d478:1:0:0:cb10:cc07]) (authenticated bits=0) by bits.crawford.emu.id.au (8.17.1/8.17.1) with ESMTPSA id 30L8vxu42985116 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 21 Jan 2023 19:58:18 +1100 Authentication-Results: bits.crawford.emu.id.au; arc=none smtp.remote-ip=fdd2:7aad:d478:1::cb10:cc07 DKIM-Filter: OpenDKIM Filter v2.11.0 bits.crawford.emu.id.au 30L8vxu42985116 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crawford.emu.id.au; s=s1; t=1674291498; bh=SLLe+KdFoEyxxQ6Kyfu2pO+6m56C9dZgMWvHBnJAPVA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EKGv5EerWRmhvRDcNvdQhD1uHaCKcReT5+XbkQMJyTcRY8wm+clS4Yk3Kk6DsLpic nId72myM1ek2Na+vp5zsmlMCxX+dtMUGnl3SDhCPlljBJ8/4iLb6bU5xeGBquxYO2b xp9WrPLJtRQ1qH0ezmUYn7DODvoL11gjynjd/b/LrdkhLCY8VOJvfSgd23jgCszWW1 GvfQlmSqpsoLwA/7DjFTXMhL9CxoGCYuzJaNjLCdDa2M7FY/wSoghcYnnMSf06w105 uYfK6cMmM92z74p2ajsalyj9D/L8KRh2MsG5YxKNnbkWTr33XO0Gfe0x50DYKjiHgs 1Wl6bUVMo0eNQ== From: Frank Crawford To: Jean Delvare , Guenter Roeck Cc: linux-hwmon@vger.kernel.org, Frank Crawford Subject: [PATCH v1 2/2] hwmon: (it87) Added driver version to distinguish from dev version Date: Sat, 21 Jan 2023 19:57:54 +1100 Message-Id: <20230121085754.1693336-3-frank@crawford.emu.id.au> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230121085754.1693336-1-frank@crawford.emu.id.au> References: <20230121085754.1693336-1-frank@crawford.emu.id.au> MIME-Version: 1.0 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.4 (bits.crawford.emu.id.au [IPv6:fdd2:7aad:d478:1:0:0:cb10:cc01]); Sat, 21 Jan 2023 19:58:18 +1100 (AEDT) X-Virus-Scanned: clamav-milter 0.103.7 at bits.crawford.emu.id.au X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Add a driver version and log it on load, to make it easier to distinguish between the in-tree version and any development version from an external source. Signed-off-by: Frank Crawford --- drivers/hwmon/it87.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index a8a6a0ffee82..632ab3d50bc6 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c @@ -59,6 +59,8 @@ #include #include +#define IT87_DRIVER_VERSION "v1.0-official" + #define DRVNAME "it87" enum chips { it87, it8712, it8716, it8718, it8720, it8721, it8728, it8732, @@ -3398,6 +3400,8 @@ static int __init sm_it87_init(void) bool found = false; int i, err; + pr_info("it87 driver version %s\n", IT87_DRIVER_VERSION); + err = platform_driver_register(&it87_driver); if (err) return err; @@ -3470,6 +3474,7 @@ MODULE_PARM_DESC(fix_pwm_polarity, "Force PWM polarity to active high (DANGEROUS)"); MODULE_LICENSE("GPL"); +MODULE_VERSION(IT87_DRIVER_VERSION); module_init(sm_it87_init); module_exit(sm_it87_exit);