Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ab0a119 authored by Jean Delvare's avatar Jean Delvare Committed by Wolfram Sang
Browse files

i2c: i2c-smbus: drop useless stubs



Drivers which use the SMBus extensions select I2C_SMBUS, so the
stubs are not needed.

Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
Reviewed-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 7dd91d52
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -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 */