i2c: i2c-smbus: drop useless stubs
authorJean Delvare <jdelvare@suse.de>
Tue, 19 Jul 2016 11:15:49 +0000 (13:15 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 22 Jul 2016 07:07:02 +0000 (09:07 +0200)
Drivers which use the SMBus extensions select I2C_SMBUS, so the
stubs are not needed.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
include/linux/i2c-smbus.h

index 4ac95bbe53ef6add355d457c62bd630cf84093fd..c2e3324f946853037d6f2ad90eacfc15781ceab1 100644 (file)
@@ -73,23 +73,8 @@ struct smbus_host_notify {
        u8                      addr;
 };
 
-#if IS_ENABLED(CONFIG_I2C_SMBUS)
 struct smbus_host_notify *i2c_setup_smbus_host_notify(struct i2c_adapter *adap);
 int i2c_handle_smbus_host_notify(struct smbus_host_notify *host_notify,
                                 unsigned short addr, unsigned int data);
-#else
-static inline struct smbus_host_notify *
-i2c_setup_smbus_host_notify(struct i2c_adapter *adap)
-{
-       return NULL;
-}
-
-static inline int
-i2c_handle_smbus_host_notify(struct smbus_host_notify *host_notify,
-                            unsigned short addr, unsigned int data)
-{
-       return 0;
-}
-#endif /* I2C_SMBUS */
 
 #endif /* _LINUX_I2C_SMBUS_H */