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: Sun, 5 Dec 2010 23:16:54 -0500
Cc: Jean Delvare <khali@linux-fr.org>, linux-mips@linux-mips.org, "Maciej W. Rozycki" <macro@linux-mips.org>, 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:from:to:cc:subject:date :message-id:x-mailer; bh=jW00FTB7KQRtoofGQ33837FzMXck2ZXCEtwLio5yQ+k=; b=pmQ5RlfsLaBW1NC6JO2KGCj0IDfRpz+20ly3qicKxswzFCoC1HuJHwlEHQZvbS5pS8 GEl3ufCSEKuZt+DNuLy/0v65hYVPgzvBT4mD2m2SCgLpkPwr2EA5eBxyhDYEMaJywDqV ccjCdB0W61avyu3FWZ+O7PWhnMcHlIsRtNVPw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=csKx51o4+IDLkNTd4RWz9KvCNanPnFrzMwsDTcz5t7qD6zrYOu2VFnkqFKrvRlM8Ii IzS32Znlv9veyCOjd/4070zi0+agmErqF1seGljrWcOW/O3y6d0sHSVrJjOzLI3dkoa6 +pkcXAEXN0fYWlI2PRbKR6Yx8gvRMJrrleEu4=
Original-recipient: rfc822;linux-mips@linux-mips.org
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>
  • [PATCH 3/3] MIPS: register hwmon on SWARM, Matt Turner <=