mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
staging: greybus: i2c: remove unused pointers
Remove unused pointers in gb_i2c_algorithm structure and gb_i2c_probe() function, as they are not touched since 2014. Suggested-by: Johan Hovold <johan@kernel.org> Signed-off-by: Lourdes Pedrajas <lu@pplo.net> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Link: https://lore.kernel.org/r/20200312190349.7892-1-lu@pplo.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f54df47919
commit
2587768a51
@ -224,7 +224,6 @@ static u32 gb_i2c_functionality(struct i2c_adapter *adap)
|
||||
|
||||
static const struct i2c_algorithm gb_i2c_algorithm = {
|
||||
.master_xfer = gb_i2c_master_xfer,
|
||||
/* .smbus_xfer = gb_i2c_smbus_xfer, */
|
||||
.functionality = gb_i2c_functionality,
|
||||
};
|
||||
|
||||
@ -267,7 +266,6 @@ static int gb_i2c_probe(struct gbphy_device *gbphy_dev,
|
||||
adapter->owner = THIS_MODULE;
|
||||
adapter->class = I2C_CLASS_HWMON | I2C_CLASS_SPD;
|
||||
adapter->algo = &gb_i2c_algorithm;
|
||||
/* adapter->algo_data = what? */
|
||||
|
||||
adapter->dev.parent = &gbphy_dev->dev;
|
||||
snprintf(adapter->name, sizeof(adapter->name), "Greybus i2c adapter");
|
||||
|
Loading…
Reference in New Issue
Block a user