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: Jean Delvare <khali@linux-fr.org> Cc: Jon Smirl <jonsmirl@gmail.com> Cc: Jochen Friedrich <jochen@scram.de>
This commit is contained in:
committed by
Jean Delvare
parent
d2653e9273
commit
3760f73671
@@ -199,8 +199,7 @@ static struct platform_device *migor_devices[] __initdata = {
|
||||
|
||||
static struct i2c_board_info __initdata migor_i2c_devices[] = {
|
||||
{
|
||||
I2C_BOARD_INFO("rtc-rs5c372", 0x32),
|
||||
.type = "rs5c372b",
|
||||
I2C_BOARD_INFO("rs5c372b", 0x32),
|
||||
},
|
||||
{
|
||||
I2C_BOARD_INFO("migor_ts", 0x51),
|
||||
|
||||
@@ -199,8 +199,7 @@ static struct platform_device smbus_device = {
|
||||
|
||||
static struct i2c_board_info __initdata highlander_i2c_devices[] = {
|
||||
{
|
||||
I2C_BOARD_INFO("rtc-rs5c372", 0x32),
|
||||
.type = "r2025sd",
|
||||
I2C_BOARD_INFO("r2025sd", 0x32),
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user