aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2016-07-19 07:15:49 -0400
committerWolfram Sang <wsa@the-dreams.de>2016-07-22 03:07:02 -0400
commit1ab0a1192dc8b02162c7ce03d332ef8e599e5f4e (patch)
tree7c67bf702e1864713ccadb139650a377c1d72382
parent7dd91d52a813f99a95d20f539b777e9e6198b931 (diff)
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 <jdelvare@suse.de> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r--include/linux/i2c-smbus.h15
1 files changed, 0 insertions, 15 deletions
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 {
73 u8 addr; 73 u8 addr;
74}; 74};
75 75
76#if IS_ENABLED(CONFIG_I2C_SMBUS)
77struct smbus_host_notify *i2c_setup_smbus_host_notify(struct i2c_adapter *adap); 76struct smbus_host_notify *i2c_setup_smbus_host_notify(struct i2c_adapter *adap);
78int i2c_handle_smbus_host_notify(struct smbus_host_notify *host_notify, 77int i2c_handle_smbus_host_notify(struct smbus_host_notify *host_notify,
79 unsigned short addr, unsigned int data); 78 unsigned short addr, unsigned int data);
80#else
81static inline struct smbus_host_notify *
82i2c_setup_smbus_host_notify(struct i2c_adapter *adap)
83{
84 return NULL;
85}
86
87static inline int
88i2c_handle_smbus_host_notify(struct smbus_host_notify *host_notify,
89 unsigned short addr, unsigned int data)
90{
91 return 0;
92}
93#endif /* I2C_SMBUS */
94 79
95#endif /* _LINUX_I2C_SMBUS_H */ 80#endif /* _LINUX_I2C_SMBUS_H */