Hi! The nice little inline i2c_8bit_addr_from_msg is not getting enough use. This series improves the situation and drops a bunch of lines in the process. I have only compile-tested (that part fine, at least over here). Changes since v1 https://lkml.org/lkml/2018/5/14/919 - Squashed patches 1-3 (algos) and patches 4-21 (busses) making the series consist of just two patches instead of 21. - Added ack-bys and reviewed-bys from Guenter, Uwe and LinusW. - Eliminated the flags variable in algos/i2c-algo-pcf.c Cheers, Peter Peter Rosin (2): i2c: algos: make use of i2c_8bit_addr_from_msg i2c: busses: make use of i2c_8bit_addr_from_msg drivers/i2c/algos/i2c-algo-bit.c | 4 +--- drivers/i2c/algos/i2c-algo-pca.c | 5 +---- drivers/i2c/algos/i2c-algo-pcf.c | 8 ++------ drivers/i2c/busses/i2c-aspeed.c | 3 +-- drivers/i2c/busses/i2c-axxia.c | 5 +++-- drivers/i2c/busses/i2c-diolan-u2c.c | 11 ++++------- drivers/i2c/busses/i2c-efm32.c | 3 +-- drivers/i2c/busses/i2c-eg20t.c | 5 ++--- drivers/i2c/busses/i2c-emev2.c | 2 +- drivers/i2c/busses/i2c-hix5hd2.c | 9 ++------- drivers/i2c/busses/i2c-imx-lpi2c.c | 4 +--- drivers/i2c/busses/i2c-imx.c | 10 +++++----- drivers/i2c/busses/i2c-kempld.c | 7 +++---- drivers/i2c/busses/i2c-mxs.c | 9 +++------ drivers/i2c/busses/i2c-ocores.c | 5 +---- drivers/i2c/busses/i2c-pasemi.c | 2 +- drivers/i2c/busses/i2c-qup.c | 2 +- drivers/i2c/busses/i2c-rcar.c | 2 +- drivers/i2c/busses/i2c-riic.c | 5 ++--- drivers/i2c/busses/i2c-stu300.c | 22 +++++++++++++--------- drivers/i2c/busses/i2c-xiic.c | 11 ++--------- 21 files changed, 51 insertions(+), 83 deletions(-) -- 2.11.0