i2c: i801: Improve i801_setup_hstcfg
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 25 May 2021 20:07:17 +0000 (22:07 +0200)
committerWolfram Sang <wsa@kernel.org>
Sun, 20 Jun 2021 20:56:21 +0000 (22:56 +0200)
commitc601610cd73d4cfc2dcbae185c134deb7c4c52cc
tree5ec88c473c6575cb2681ebfa5b171e4b5e26d3e7
parentd4a994f69f0bed0ba49db12d7bae2c891dc4b51f
i2c: i801: Improve i801_setup_hstcfg

i801_setup_hstcfg() leaves the bits in priv->original_hstcfg that
we're interested in intact. Therefore we can remove the return value
from the function and use priv->original_hstcfg directly.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Tested-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-i801.c