On Mon, 19 Dec 2022 19:16:08 +0100, Heiner Kallweit wrote: > Factor out setting SMBHSTADD to a helper. The current code makes the > assumption that constant I2C_SMBUS_READ has bit 0 set, that's not ideal. > Therefore let the new helper explicitly check for I2C_SMBUS_READ. > > Signed-off-by: Heiner Kallweit <hkallweit1@xxxxxxxxx> > --- > v2: > - change expressions for generating less binary code > --- > drivers/i2c/busses/i2c-i801.c | 36 ++++++++++++++++------------------- > 1 file changed, 16 insertions(+), 20 deletions(-) > (...) Reviewed-by: Jean Delvare <jdelvare@xxxxxxx> -- Jean Delvare SUSE L3 Support