i2c: piix4: Move port I/O region request/release code into functions
authorTerry Bowman <terry.bowman@amd.com>
Wed, 9 Feb 2022 17:27:11 +0000 (11:27 -0600)
committerWolfram Sang <wsa@kernel.org>
Fri, 11 Feb 2022 14:33:58 +0000 (15:33 +0100)
commita3325d225b00889f4b7fdb25d83033cae1048a92
tree27b468d10bdbd90e8015655c584992f306924a4e
parent93102cb449780f7b4eecf713451627b78373ce49
i2c: piix4: Move port I/O region request/release code into functions

Move duplicated region request and release code into a function. Move 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>
[wsa: added missing curly brace]
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-piix4.c