From patchwork Sun Mar 12 04:31:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Crawford X-Patchwork-Id: 13171125 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 2172EC6FD19 for ; Sun, 12 Mar 2023 04:37:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229694AbjCLEhK (ORCPT ); Sat, 11 Mar 2023 23:37:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjCLEhJ (ORCPT ); Sat, 11 Mar 2023 23:37:09 -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 D5D4C5940C for ; Sat, 11 Mar 2023 20:37:07 -0800 (PST) IronPort-SDR: 640d55be_EhRyBme+0a7icCz7p8OwCp82LWXL+iQ6ykckJ6Rk+bxjGLj q/bBAzGATlFcvcdh5yMUED0ZO079bet0v1knFhQ== X-SMTP-MATCH: 0 X-IPAS-Result: A2BPAgAwVA1kjPQc8jxagRKBRoIugk+zUIF+DwEPAQFEBAEBhQWFNSY0CQ4BAgQBAQEBAwIDAQEBAQEBAwEBBgEBAQEBAQYEFAEBAQFARYVoDYZYNgENAQE3ASiBFQGDEIJdsHmBAYIIAQEGgmKaaIFeCYFAi22BFoM2gTw/gU6EfYQ3hkyYPgqBNHWBIA5Kc4EGAgkCEWuBEghogX5BAg1lCw50gWACgQkDCQMHBUlAAwsYDRY6Eyw1FCFebC4SEgUDCxUqRwQIOQZPEQIIDxIPLEQOQjc0EwZcASkLDhEDT0IZbASCDgcoJJ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A7E4W30bcxSgiOAX5rGNVN3fksMznHWTeQ3TOuFRiASvlVLaaXzX7iW t1cGM1fcj+figCMl2k/LowRKeZWmPUJ2oIzSonzLzRbj4rF/ytbi7OOxC3Qn2Rxfs5Pl/w6I Ybvdz6vNGycqH9Xum3Vpvl/JWuKTogYVTL4wdyK3r0FJ7AbvMFoVHMC4L++knGWEQlgphyvr FziYY3SxLdc0ohCpdbnPZhCIASWEunNctq03jq9iPl0VuOXA/zy71sUjnLFIzVpOaAgXoUrt LaV7//y8kD3nJc3dGH7mZKEOfJ74JSjbsEKNsjHEWRTohKfaf/R4j8o2WOxGbpWmvxzu+ilQ AqZbpOrVNg3At1y+lxcWxJ8IT08VZvlS7jGnjysifamBjw28x31HPn++VDHNWhkJzI1YbvgA QrKitOSz9F/rrUUIiQbBvtjUqRKEHW6VYQIL9TO5CSlVE+2iVa/u5znpxoqyRfPLlKmSM/aw 5b0diLSRSSImpPj7Y9m6tRpnxgtEnxCr/E6fRsd9/5ImjmKNjM6AtpHA6oWKKN/s3LU5Mj0a giYOSFmQW/4UC9feBrx3MX7U03NTqYSM9P+PXoy81nSdy6yA5iaDaB88jt7pU17YSbn0PrtP OR2Fqcc5fRt6soBqT4v28GG IronPort-HdrOrdr: A9a23:hxKoFq87byru69OrfMZuk+D2I+orL9Y04lQ7vn2ZKSY+TiVXra GTdZMgpHjJYFR4YhwdcLW7VJVoLkmslqKdjbN/AV7AZniDhILXFvAB0WKK+VSJcBEWndQ86U 4PScZD4FKcNykdsS+D2njcLz85+qj8zEm3v5ak856zd3ASV0mwhz0JcjqmLg== 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; 12 Mar 2023 15:01:58 +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 32C4VeSI3479492 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 12 Mar 2023 15:31:49 +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 32C4VeSI3479492 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crawford.emu.id.au; s=s1; t=1678595511; bh=ae9Zszh+M1I0LZZtGn0CD/iCpY2Xxw0dZN4boJLB4xU=; h=From:To:Cc:Subject:Date:From; b=Lh5/w3ZuveF0tBKaNO/CawHU1mpsbpim/sviDtew2K00KfVIg1eJZW+c7gcCrPc5j WZPknEZr8qtfIlVV9Cqv0t74W5+ZwprFAEz1ioFUbWa53B3daA2MZyP7Zz30OYKx7C LK3hJ56mmi1H6PqLZRkNsgIChTggqz7MHS/Q3uw1B9sSxcCesnpHO45byEHzEClYwX S5+uaUtxCAM0Rg0HAS2spLuMJO4rSLdgFq9Cn9bSsAQXV4mkuh6G/XUvaiqBjGSIR8 zgnDZHb1u/GoZIsdJdEWfeBrnYjNQsbFKfxLf0MML/O/O9U9XtZVxs6XX04lqVZTAM StlPXnMKefadA== From: Frank Crawford To: Jean Delvare , Guenter Roeck Cc: linux-hwmon@vger.kernel.org, Frank Crawford Subject: [PATCH v1 0/3] hwmon (it87): Support all know ADC values Date: Sun, 12 Mar 2023 15:31:34 +1100 Message-Id: <20230312043137.1744885-1-frank@crawford.emu.id.au> X-Mailer: git-send-email 2.39.2 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]); Sun, 12 Mar 2023 15:31:51 +1100 (AEDT) X-Virus-Scanned: clamav-milter 0.103.8 at bits.crawford.emu.id.au X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Add support of all know ADC values currently identified for it87 chips. Generalise definitions for handling of scaled internal voltages and voltage labels. Apply some other minor optimistations. --- Frank Crawford (3): Added support for 11mV ADC Add scaling macro for recent ADC voltages Minor optimisation of return value drivers/hwmon/it87.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)