Exemplo n.º 1
0
static void __init mop500_i2c_init(struct device *parent)
{
	db8500_add_i2c0(parent, NULL);
	db8500_add_i2c1(parent, NULL);
	db8500_add_i2c2(parent, NULL);
	db8500_add_i2c3(parent, NULL);
}
static void __init mop500_i2c_init(struct device *parent)
{
	db8500_add_i2c0(parent, &u8500_i2c0_data);
	db8500_add_i2c1(parent, &u8500_i2c1_data);
	db8500_add_i2c2(parent, &u8500_i2c2_data);
	db8500_add_i2c3(parent, &u8500_i2c3_data);
}
Exemplo n.º 3
0
static void __init mop500_i2c_init(void)
{
	db8500_add_i2c0(&u8500_i2c0_data);
	db8500_add_i2c1(&u8500_i2c1_data);
	db8500_add_i2c2(&u8500_i2c2_data);
	db8500_add_i2c3(&u8500_i2c3_data);
}
static void __init mop500_i2c_init(void)
{
	db8500_add_i2c0(&mop500_i2c0_data);
	db8500_add_i2c1(&mop500_i2c1_data);
	db8500_add_i2c2(&mop500_i2c2_data);
	db8500_add_i2c3(&mop500_i2c3_data);

	i2c_register_board_info(0, ARRAY_AND_SIZE(mop500_i2c0_devices));
	i2c_register_board_info(1, ARRAY_AND_SIZE(mop500_i2c1_devices));
	i2c_register_board_info(2, ARRAY_AND_SIZE(mop500_i2c2_devices));
	i2c_register_board_info(3, ARRAY_AND_SIZE(mop500_i2c3_devices));
}