staging: greybus: i2c: remove unused pointers
authorLourdes Pedrajas <lu@pplo.net>
Thu, 12 Mar 2020 19:03:49 +0000 (20:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Mar 2020 11:47:24 +0000 (12:47 +0100)
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>
drivers/staging/greybus/i2c.c

index c48fa1d..de2f651 100644 (file)
@@ -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");