1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* 3 * Broadcom BCM91250A (SWARM), etc. I2C platform setup. 4 * 5 * Copyright (c) 2008 Maciej W. Rozycki 6 */ 7 8 #include <linux/i2c.h> 9 #include <linux/init.h> 10 #include <linux/kernel.h> 11 12 13 static struct i2c_board_info swarm_i2c_info1[] __initdata = { 14 { 15 I2C_BOARD_INFO("m41t81", 0x68), 16 }, 17 }; 18 swarm_i2c_init(void)19static int __init swarm_i2c_init(void) 20 { 21 int err; 22 23 err = i2c_register_board_info(1, swarm_i2c_info1, 24 ARRAY_SIZE(swarm_i2c_info1)); 25 if (err < 0) 26 printk(KERN_ERR 27 "swarm-i2c: cannot register board I2C devices\n"); 28 return err; 29 } 30 31 arch_initcall(swarm_i2c_init); 32