linux-mips
[Top] [All Lists]

[PATCH 3/3] MIPS: register hwmon on SWARM

To: linux-mips@linux-mips.org
Subject: [PATCH 3/3] MIPS: register hwmon on SWARM
From: Matt Turner <mattst88@gmail.com>
Date: Sun, 14 Nov 2010 23:53:49 -0500
Cc: Ralf Baechle <ralf@linux-mips.org>, "Maciej W. Rozycki" <macro@linux-mips.org>, kaloz@openwrt.org, Mark Zhan <rongkai.zhan@windriver.com>, Matt Turner <mattst88@gmail.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject :date:message-id:x-mailer:in-reply-to:references; bh=jW00FTB7KQRtoofGQ33837FzMXck2ZXCEtwLio5yQ+k=; b=jE1pjVEAmVMgfzQA0xl8K3MSwbgdVIBEnPevnpbEks4MIhI0wWWbCzyS22jtAD6vRw w6H31jkZ/XnB7EemKmRTekyWZu4kQwyAusvu1ksLKHLVFIOFcSghfSnJ3IYPnIT2T4+X 904IrtZ1zFKwgH980adDxF6M/CwHUXgpIFs90=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=vb+aKF/3nYS7Iklwl3X7jc0INqpx8Tc+HzCx+uGU1qpJ0bFZJdBdGPvrOqGl5KORZm ovPqQXMGTIa3katOW8ws68XzsSOXDxibARTQfeJod5y2Hvxl+Ael9evu5PyQvZFJRi08 z6S0TECEiLVt8hpd00qvex7vU7Hj28zImuPkY=
In-reply-to: <1289796829-29222-1-git-send-email-mattst88@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1289796829-29222-1-git-send-email-mattst88@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
From: Maciej W. Rozycki <macro@linux-mips.org>

Tested-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
---
 arch/mips/sibyte/swarm/swarm-i2c.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/mips/sibyte/swarm/swarm-i2c.c 
b/arch/mips/sibyte/swarm/swarm-i2c.c
index 0625050..a6e417f 100644
--- a/arch/mips/sibyte/swarm/swarm-i2c.c
+++ b/arch/mips/sibyte/swarm/swarm-i2c.c
@@ -13,6 +13,11 @@
 #include <linux/init.h>
 #include <linux/kernel.h>
 
+static struct i2c_board_info swarm_i2c_info0[] __initdata = {
+       {
+               I2C_BOARD_INFO("lm90", 0x2a),
+       },
+};
 
 static struct i2c_board_info swarm_i2c_info1[] __initdata = {
        {
@@ -24,6 +29,8 @@ static int __init swarm_i2c_init(void)
 {
        int err;
 
+       err = i2c_register_board_info(0, swarm_i2c_info0,
+                                     ARRAY_SIZE(swarm_i2c_info0));
        err = i2c_register_board_info(1, swarm_i2c_info1,
                                      ARRAY_SIZE(swarm_i2c_info1));
        if (err < 0)
-- 
1.7.3.2


<Prev in Thread] Current Thread [Next in Thread>