Path: blob/master/arch/mips/sibyte/swarm/swarm-i2c.c
10818 views
/*1* Broadcom BCM91250A (SWARM), etc. I2C platform setup.2*3* Copyright (c) 2008 Maciej W. Rozycki4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public License7* as published by the Free Software Foundation; either version8* 2 of the License, or (at your option) any later version.9*/1011#include <linux/i2c.h>12#include <linux/init.h>13#include <linux/kernel.h>141516static struct i2c_board_info swarm_i2c_info1[] __initdata = {17{18I2C_BOARD_INFO("m41t81", 0x68),19},20};2122static int __init swarm_i2c_init(void)23{24int err;2526err = i2c_register_board_info(1, swarm_i2c_info1,27ARRAY_SIZE(swarm_i2c_info1));28if (err < 0)29printk(KERN_ERR30"swarm-i2c: cannot register board I2C devices\n");31return err;32}3334arch_initcall(swarm_i2c_init);353637