i2c: i801: Improve i801_acpi_probe/remove functions
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 6 Aug 2021 21:16:33 +0000 (23:16 +0200)
committerWolfram Sang <wsa@kernel.org>
Wed, 29 Sep 2021 19:37:24 +0000 (21:37 +0200)
commit4811a411a92913e5327e4b32d4bb783823348537
treeb5aaa72ee6e2e7966a7e5e33498f2a488c49dfc0
parente462aa7e39b5b6f70bc993d5ce50f7cc2e71182a
i2c: i801: Improve i801_acpi_probe/remove functions

By using ACPI_HANDLE() the handler argument can be retrieved directly.
Both address space handler functions check the handler argument and
return an error if it's NULL. This allows to further simplify the code.

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