i2c: add identifier in declarations for i2c_bus_recovery
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 9 Jan 2018 13:58:55 +0000 (14:58 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 15 Jan 2018 23:04:03 +0000 (00:04 +0100)
No reason to have them undefined, so let's add them.

Tested-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
include/linux/i2c.h

index f8a9d81e911e52f7f57ce16ce0e22178820f22d0..fd87b806b5f1656eb3c831fe71e5d20fc2b23592 100644 (file)
@@ -559,14 +559,14 @@ struct i2c_timings {
  * @sda_gpiod: gpiod of the SDA line. Only required for GPIO recovery.
  */
 struct i2c_bus_recovery_info {
-       int (*recover_bus)(struct i2c_adapter *);
+       int (*recover_bus)(struct i2c_adapter *adap);
 
-       int (*get_scl)(struct i2c_adapter *);
-       void (*set_scl)(struct i2c_adapter *, int val);
-       int (*get_sda)(struct i2c_adapter *);
+       int (*get_scl)(struct i2c_adapter *adap);
+       void (*set_scl)(struct i2c_adapter *adap, int val);
+       int (*get_sda)(struct i2c_adapter *adap);
 
-       void (*prepare_recovery)(struct i2c_adapter *);
-       void (*unprepare_recovery)(struct i2c_adapter *);
+       void (*prepare_recovery)(struct i2c_adapter *adap);
+       void (*unprepare_recovery)(struct i2c_adapter *adap);
 
        /* gpio recovery */
        struct gpio_desc *scl_gpiod;