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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 May 2022 07:57:22 +0000 (09:57 +0200)
commit9a8119ddc3c5069dca15b5497db244152471fa87
tree361ef32052d0e4db2897d5597de8f8d73775874d
parentbdf9bed734c3981acd12e3c3e2825ae87dd44f6b
i2c: piix4: Move SMBus controller base address detect into function

commit 0a59a24e14e9b21dcbb6b8ea41422e2fdfa437fd upstream.

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>
Cc: Mario Limonciello <Mario.Limonciello@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-piix4.c