Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3760f736 authored by Jean Delvare's avatar Jean Delvare Committed by Jean Delvare
Browse files

i2c: Convert most new-style drivers to use module aliasing



Based on earlier work by Jon Smirl and Jochen Friedrich.

Update most new-style i2c drivers to use standard module aliasing
instead of the old driver_name/type driver matching scheme. I've
left the video drivers apart (except for SoC camera drivers) as
they're a bit more diffcult to deal with, they'll have their own
patch later.

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Cc: Jon Smirl <jonsmirl@gmail.com>
Cc: Jochen Friedrich <jochen@scram.de>
parent d2653e92
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -79,8 +79,7 @@ static struct at91_udc_data __initdata csb337_udc_data = {

static struct i2c_board_info __initdata csb337_i2c_devices[] = {
	{
		I2C_BOARD_INFO("rtc-ds1307", 0x68),
		.type	= "ds1307",
		I2C_BOARD_INFO("ds1307", 0x68),
	},
};

+1 −2
Original line number Diff line number Diff line
@@ -132,8 +132,7 @@ static struct i2c_board_info __initdata dk_i2c_devices[] = {
		I2C_BOARD_INFO("x9429", 0x28),
	},
	{
		I2C_BOARD_INFO("at24c", 0x50),
		.type	= "24c1024",
		I2C_BOARD_INFO("24c1024", 0x50),
	}
};

+1 −2
Original line number Diff line number Diff line
@@ -93,8 +93,7 @@ static struct at91_mmc_data __initdata eb9200_mmc_data = {

static struct i2c_board_info __initdata eb9200_i2c_devices[] = {
	{
		I2C_BOARD_INFO("at24c", 0x50),
		.type	= "24c512",
		I2C_BOARD_INFO("24c512", 0x50),
	},
};

+1 −2
Original line number Diff line number Diff line
@@ -50,8 +50,7 @@ static struct sys_timer em7210_timer = {
 */
static struct i2c_board_info __initdata em7210_i2c_devices[] = {
	{
		I2C_BOARD_INFO("rtc-rs5c372", 0x32),
		.type = "rs5c372a",
		I2C_BOARD_INFO("rs5c372a", 0x32),
	},
};

+1 −3
Original line number Diff line number Diff line
@@ -176,12 +176,10 @@ static struct f75375s_platform_data glantank_f75375s = {

static struct i2c_board_info __initdata glantank_i2c_devices[] = {
	{
		I2C_BOARD_INFO("rtc-rs5c372", 0x32),
		.type = "rs5c372a",
		I2C_BOARD_INFO("rs5c372a", 0x32),
	},
	{
		I2C_BOARD_INFO("f75375", 0x2e),
		.type = "f75375",
		.platform_data = &glantank_f75375s,
	},
};
Loading