source: trunk/target/linux/sibyte/patches-3.3/105-sibyte_hwmon.patch @ 31680

Last change on this file since 31680 was 31680, checked in by juhosg, 5 years ago

sibyte: add 3.3 support

File size: 607 bytes
  • arch/mips/sibyte/swarm/swarm-i2c.c

    a b  
    1313#include <linux/init.h> 
    1414#include <linux/kernel.h> 
    1515 
     16static struct i2c_board_info swarm_i2c_info0[] __initdata = { 
     17        { 
     18                I2C_BOARD_INFO("lm90", 0x2a), 
     19        }, 
     20}; 
    1621 
    1722static struct i2c_board_info swarm_i2c_info1[] __initdata = { 
    1823        { 
    static int __init swarm_i2c_init(void) 
    2429{ 
    2530        int err; 
    2631 
     32        err = i2c_register_board_info(0, swarm_i2c_info0, 
     33                                      ARRAY_SIZE(swarm_i2c_info0)); 
    2734        err = i2c_register_board_info(1, swarm_i2c_info1, 
    2835                                      ARRAY_SIZE(swarm_i2c_info1)); 
    2936        if (err < 0) 
Note: See TracBrowser for help on using the repository browser.