From: Steffen Kothe <steffen.kothe.gc1993@googlemail.com>
To: unlisted-recipients:; (no To-header on input)
Cc: linux-hwmon@vger.kernel.org
Subject: f71882fg: Add support for Fintek F81804 & F81966
Date: Tue, 15 Jan 2019 12:11:00 +0100 [thread overview]
Message-ID: <ffb8c467-1ebc-c07d-7e16-cc8fbb0b2d9d@googlemail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: 0001-f71882fg-add-support-f81804-f81966.patch --]
[-- Type: text/x-patch, Size: 1317 bytes --]
From 3b088a08348a18f6791526e92e5042d137287f1d Mon Sep 17 00:00:00 2001
From: Steffen Kothe <steffen.kothe.gc1993@googlemail.com>
Date: Tue, 15 Jan 2019 11:27:22 +0100
Subject: [PATCH] f71882fg: add support f81804 & f81966
Support for Fintek F81804 & F81966.
Enumerate chip and use Fintek F81866 as template,
because implementation is the same.
Signed-off-by: Steffen Kothe <steffen.kothe.gc1993@googlemail.com>
---
drivers/hwmon/f71882fg.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/hwmon/f71882fg.c b/drivers/hwmon/f71882fg.c
index ca54ce5c8e10..8a2bc1ecf991 100644
--- a/drivers/hwmon/f71882fg.c
+++ b/drivers/hwmon/f71882fg.c
@@ -62,6 +62,7 @@
#define SIO_F81768D_ID 0x1210 /* Chipset ID */
#define SIO_F81865_ID 0x0704 /* Chipset ID */
#define SIO_F81866_ID 0x1010 /* Chipset ID */
+#define SIO_F81804_ID 0x1502 /* Chipset ID, same for Fintek F81966 */
#define REGION_LENGTH 8
#define ADDR_REG_OFFSET 5
@@ -2685,7 +2686,8 @@ static int __init f71882fg_find(int sioaddr, struct f71882fg_sio_data *sio_data)
sio_data->type = f81865f;
break;
case SIO_F81866_ID:
- sio_data->type = f81866a;
+ case SIO_F81804_ID:
+ sio_data->type = f81866a; /*correlates to Fintek f81866a*/
break;
default:
pr_info("Unsupported Fintek device: %04x\n",
--
2.17.1
reply other threads:[~2019-01-15 11:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ffb8c467-1ebc-c07d-7e16-cc8fbb0b2d9d@googlemail.com \
--to=steffen.kothe.gc1993@googlemail.com \
--cc=linux-hwmon@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).