linux-mips
[Top] [All Lists]

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

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 3/3] MIPS: register hwmon on SWARM
From: Matt Turner <mattst88@gmail.com>
Date: Thu, 18 Aug 2011 19:46:25 -0400
Cc: Jean Delvare <khali@linux-fr.org>, linux-i2c@vger.kernel.org, linux-mips@linux-mips.org, lm-sensors@lm-sensors.org, Guenter Roeck <guenter.roeck@ericsson.com>, Matt Turner <mattst88@gmail.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=Sja2tKKPkvVZNEHIAl4jnyBxyCHzQnsrnB5lBbP7lpU=; b=GNyJAzeccgDk0rXjlgowy0LB6wVE/kUimBeD/Op59zRUTlyw2AeEfsoXi7Yew5Yy4W O9cL7oOPZCT890JMb3LE+4qmoF39/5t57oBY42vByr54U1MZiUOuxZ7ZlKcrbvTKbrD9 Sx//cXfYpN4qtNZJTdivlaVxCGInbcQIlcPak=
Sender: linux-mips-bounce@linux-mips.org
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.4


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 3/3] MIPS: register hwmon on SWARM, Matt Turner <=