From patchwork Fri Aug 19 04:00:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Weber X-Patchwork-Id: 9289303 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 196EA600CB for ; Fri, 19 Aug 2016 04:09:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04ACF28EEF for ; Fri, 19 Aug 2016 04:09:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED8F328F4B; Fri, 19 Aug 2016 04:09:05 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 55C7728EEF for ; Fri, 19 Aug 2016 04:09:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753454AbcHSEJE (ORCPT ); Fri, 19 Aug 2016 00:09:04 -0400 Received: from da1vs01.rockwellcollins.com ([205.175.227.27]:1282 "EHLO da1vs01.rockwellcollins.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750838AbcHSEJE (ORCPT ); Fri, 19 Aug 2016 00:09:04 -0400 X-Greylist: delayed 454 seconds by postgrey-1.27 at vger.kernel.org; Fri, 19 Aug 2016 00:09:04 EDT Received: from ofwda1n02.rockwellcollins.com (HELO crulimr02.rockwellcollins.com) ([205.175.227.14]) by da1vs01.rockwellcollins.com with ESMTP; 18 Aug 2016 23:00:34 -0500 X-Received: from largo.rockwellcollins.com (unknown [192.168.140.76]) by crulimr02.rockwellcollins.com (Postfix) with ESMTP id 58007600EF; Thu, 18 Aug 2016 23:00:34 -0500 (CDT) From: Matt Weber To: linux-hwmon@vger.kernel.org Cc: linux@roeck-us.net, jdelvare@suse.com, Matt Weber , Ronak Desai Subject: [PATCH 2/2] hwmon: (ucd9000) support for ucd90160 sensor Date: Thu, 18 Aug 2016 23:00:24 -0500 Message-Id: <1471579224-16075-2-git-send-email-matthew.weber@rockwellcollins.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1471579224-16075-1-git-send-email-matthew.weber@rockwellcollins.com> References: <1471579224-16075-1-git-send-email-matthew.weber@rockwellcollins.com> 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 ucd90160 sensor reused existing register layout so just a compatible id update was required. Signed-off-by: Matthew Weber Signed-off-by: Ronak Desai --- drivers/hwmon/pmbus/Kconfig | 4 ++-- drivers/hwmon/pmbus/ucd9000.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/hwmon/pmbus/Kconfig b/drivers/hwmon/pmbus/Kconfig index 054d3d8..4a5136f 100644 --- a/drivers/hwmon/pmbus/Kconfig +++ b/drivers/hwmon/pmbus/Kconfig @@ -126,11 +126,11 @@ config SENSORS_TPS40422 be called tps40422. config SENSORS_UCD9000 - tristate "TI UCD90120, UCD90124, UCD9090, UCD90910" + tristate "TI UCD90120, UCD90124, UCD9090, UCD90910, UCD90160" default n help If you say yes here you get hardware monitoring support for TI - UCD90120, UCD90124, UCD9090, UCD90910 Sequencer and System Health + UCD90120, UCD90124, UCD9090, UCD90910, UCD90160 Sequencer and System Health Controllers. This driver can also be built as a module. If so, the module will diff --git a/drivers/hwmon/pmbus/ucd9000.c b/drivers/hwmon/pmbus/ucd9000.c index 207c30e..946f989 100644 --- a/drivers/hwmon/pmbus/ucd9000.c +++ b/drivers/hwmon/pmbus/ucd9000.c @@ -31,7 +31,7 @@ #include #endif -enum chips { ucd9000, ucd90120, ucd90124, ucd9090, ucd90910 }; +enum chips { ucd9000, ucd90120, ucd90124, ucd9090, ucd90910, ucd90160 }; #define UCD9000_MONITOR_CONFIG 0xd5 #define UCD9000_NUM_PAGES 0xd6 @@ -118,6 +118,7 @@ static struct of_device_id ucd9000_dt_match[] = { { .compatible = "ti,ucd90124", .data = (void *)ucd90124 }, { .compatible = "ti,ucd9090", .data = (void *)ucd9090 }, { .compatible = "ti,ucd90910", .data = (void *)ucd90910 }, + { .compatible = "ti,ucd90160", .data = (void *)ucd90160 }, { } }; #endif @@ -129,6 +130,7 @@ static const struct i2c_device_id ucd9000_id[] = { {"ucd90124", ucd90124}, {"ucd9090", ucd9090}, {"ucd90910", ucd90910}, + {"ucd90160", ucd90160}, {} }; MODULE_DEVICE_TABLE(i2c, ucd9000_id);