Commit 97518588 authored by Jean Delvare's avatar Jean Delvare Committed by Greg Kroah-Hartman
Browse files

[PATCH] I2C: Kill i2c_algorithm.name (1/7)



The name member of the i2c_algorithm is never used, although all
drivers conscientiously fill it. We can drop it completely, this
structure doesn't need to have a name.

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4c9337da
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -519,7 +519,6 @@ static u32 bit_func(struct i2c_adapter *adap)
/* -----exported algorithm data: -------------------------------------	*/

static struct i2c_algorithm i2c_bit_algo = {
	.name		= "Bit-shift algorithm",
	.id		= I2C_ALGO_BIT,
	.master_xfer	= bit_xfer,
	.functionality	= bit_func,
+0 −1
Original line number Diff line number Diff line
@@ -713,7 +713,6 @@ static u32 iic_func(struct i2c_adapter *adap)
/* -----exported algorithm data: -------------------------------------	*/

static struct i2c_algorithm iic_algo = {
	.name		= "ITE IIC algorithm",
	.id		= I2C_ALGO_IIC,
	.master_xfer	= iic_xfer,
	.algo_control	= algo_control, /* ioctl */
+0 −1
Original line number Diff line number Diff line
@@ -356,7 +356,6 @@ static int pca_init(struct i2c_algo_pca_data *adap)
}

static struct i2c_algorithm pca_algo = {
	.name		= "PCA9564 algorithm",
	.id		= I2C_ALGO_PCA,
	.master_xfer	= pca_xfer,
	.functionality	= pca_func,
+0 −1
Original line number Diff line number Diff line
@@ -459,7 +459,6 @@ static u32 pcf_func(struct i2c_adapter *adap)
/* -----exported algorithm data: -------------------------------------	*/

static struct i2c_algorithm pcf_algo = {
	.name		= "PCF8584 algorithm",
	.id		= I2C_ALGO_PCF,
	.master_xfer	= pcf_xfer,
	.functionality	= pcf_func,
+0 −1
Original line number Diff line number Diff line
@@ -158,7 +158,6 @@ static u32 sgi_func(struct i2c_adapter *adap)
}

static struct i2c_algorithm sgi_algo = {
	.name		= "SGI algorithm",
	.id		= I2C_ALGO_SGI,
	.master_xfer	= sgi_xfer,
	.functionality	= sgi_func,
Loading