From patchwork Wed Jul 19 14:01:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 9852085 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AB9F8602C8 for ; Wed, 19 Jul 2017 14:02:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9AF412867F for ; Wed, 19 Jul 2017 14:02:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8E57F28682; Wed, 19 Jul 2017 14:02:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 227A72867F for ; Wed, 19 Jul 2017 14:02:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753715AbdGSOCM (ORCPT ); Wed, 19 Jul 2017 10:02:12 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:46519 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753891AbdGSOCJ (ORCPT ); Wed, 19 Jul 2017 10:02:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=Message-Id:Date:Subject:Cc:To:From:Sender: Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=4ro3/ay+aqR0iGEWZgtWBDPvktE9C4ptxrS/LdUp5qU=; b=CnCPYDS2upbDuwbbXG2Zo3XlaO 30Pt9E9EOshiwQ0SVKAbXtqEFIjTB+inV+gORw5bKXDj3xeIe1JdFs5/qhQr1vuqv7PxeG6VpqO6D 4DJhaGKlEnoXvaEC2ZIGEjZR7eLhrgmM9Jzk5B/2nH5jxC87aJKcdhXz4/xpVxvYz8VxF/A1fR67S 9UUiKID+l87AN+kEwJjLtbIEHYuUoO9xch/U803pzkM4rPI7q+Rjpn4zMW2ZwlBlvGhJ06w07M27i SHFXVJYZlOoxP9ssqQ2hR4B/vlJxj/kYgZnbqfxaea/ClsnJ5/Qy94Ocd0EFWpOnSE5ckIoLmUX+C yk/etjNw==; Received: from 108-223-40-66.lightspeed.sntcca.sbcglobal.net ([108.223.40.66]:45628 helo=localhost) by bh-25.webhostbox.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from ) id 1dXpYG-001pd7-6u; Wed, 19 Jul 2017 14:02:08 +0000 From: Guenter Roeck To: Hardware Monitoring Cc: Jean Delvare , Guenter Roeck Subject: [PATCH] hwmon: (jc42) Add support for CAT34TS02C Date: Wed, 19 Jul 2017 07:01:58 -0700 Message-Id: <1500472918-32331-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.7.4 X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP CAT34TS02C is similar to CAT34TS02 but has a different device ID. Signed-off-by: Guenter Roeck --- drivers/hwmon/jc42.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c index edb6a81a0e10..5f11dc014ed6 100644 --- a/drivers/hwmon/jc42.c +++ b/drivers/hwmon/jc42.c @@ -139,6 +139,9 @@ static const unsigned short normal_i2c[] = { #define CAT6095_DEVID 0x0800 /* Also matches CAT34TS02 */ #define CAT6095_DEVID_MASK 0xffe0 +#define CAT34TS02C_DEVID 0x0a00 +#define CAT34TS02C_DEVID_MASK 0xfff0 + #define CAT34TS04_DEVID 0x2200 #define CAT34TS04_DEVID_MASK 0xfff0 @@ -184,6 +187,7 @@ static struct jc42_chips jc42_chips[] = { { MCP_MANID, MCP9843_DEVID, MCP9843_DEVID_MASK }, { NXP_MANID, SE97_DEVID, SE97_DEVID_MASK }, { ONS_MANID, CAT6095_DEVID, CAT6095_DEVID_MASK }, + { ONS_MANID, CAT34TS02C_DEVID, CAT34TS02C_DEVID_MASK }, { ONS_MANID, CAT34TS04_DEVID, CAT34TS04_DEVID_MASK }, { NXP_MANID, SE98_DEVID, SE98_DEVID_MASK }, { STM_MANID, STTS424_DEVID, STTS424_DEVID_MASK },