From: Jean Delvare Date: Tue, 19 Jul 2016 11:15:49 +0000 (+0200) Subject: i2c: i2c-smbus: drop useless stubs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1ab0a1192dc8b02162c7ce03d332ef8e599e5f4e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git i2c: i2c-smbus: drop useless stubs Drivers which use the SMBus extensions select I2C_SMBUS, so the stubs are not needed. Signed-off-by: Jean Delvare Reviewed-by: Benjamin Tissoires Signed-off-by: Wolfram Sang --- diff --git a/include/linux/i2c-smbus.h b/include/linux/i2c-smbus.h index 4ac95bbe53ef..c2e3324f9468 100644 --- a/include/linux/i2c-smbus.h +++ b/include/linux/i2c-smbus.h @@ -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 */