i2c: piix4: Move SMBus controller base address detect into function
authorTerry Bowman <terry.bowman@amd.com>
Wed, 9 Feb 2022 17:27:12 +0000 (11:27 -0600)
committerWolfram Sang <wsa@kernel.org>
Thu, 10 Feb 2022 21:45:41 +0000 (22:45 +0100)
commit45146f16da955dfa611a05bb1d9f5d4393dd85ea
tree4e7791698037b6b444259edd7233e7c007eb0754
parente6d5f41fb5ca9c654ce442446baacdd9e42b31bd
i2c: piix4: Move SMBus controller base address detect into function

Move SMBus controller base address detection into function. Refactor
is in preparation for following MMIO changes.

Signed-off-by: Terry Bowman <terry.bowman@amd.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-piix4.c