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

Commit c3813d6a authored by Jean Delvare's avatar Jean Delvare
Browse files

i2c: Get rid of struct i2c_client_address_data



Struct i2c_client_address_data only contains one field at this point,
which makes its usefulness questionable. Get rid of it and pass simple
address lists around instead.

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Tested-by: default avatarWolfram Sang <w.sang@pengutronix.de>
parent 310ec792
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ static struct i2c_driver foo_driver = {
	/* if device autodetection is needed: */
	.class		= I2C_CLASS_SOMETHING,
	.detect		= foo_detect,
	.address_data	= &addr_data,
	.address_list	= normal_i2c,

	.shutdown	= foo_shutdown,	/* optional */
	.suspend	= foo_suspend,	/* optional */
+1 −1
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@ static struct i2c_driver adm1021_driver = {
	.remove		= adm1021_remove,
	.id_table	= adm1021_id,
	.detect		= adm1021_detect,
	.address_data	= &addr_data,
	.address_list	= normal_i2c,
};

static ssize_t show_temp(struct device *dev,
+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ static struct i2c_driver adm1025_driver = {
	.remove		= adm1025_remove,
	.id_table	= adm1025_id,
	.detect		= adm1025_detect,
	.address_data	= &addr_data,
	.address_list	= normal_i2c,
};

/*
+1 −1
Original line number Diff line number Diff line
@@ -319,7 +319,7 @@ static struct i2c_driver adm1026_driver = {
	.remove		= adm1026_remove,
	.id_table	= adm1026_id,
	.detect		= adm1026_detect,
	.address_data	= &addr_data,
	.address_list	= normal_i2c,
};

static int adm1026_read_value(struct i2c_client *client, u8 reg)
+1 −1
Original line number Diff line number Diff line
@@ -142,7 +142,7 @@ static struct i2c_driver adm1029_driver = {
	.remove		= adm1029_remove,
	.id_table	= adm1029_id,
	.detect		= adm1029_detect,
	.address_data	= &addr_data,
	.address_list	= normal_i2c,
};

/*
Loading