OSDN Git Service

spi: hisi-sfc-v3xx: drop unnecessary ACPI_PTR and related ifendif protection
authorYicong Yang <yangyicong@hisilicon.com>
Mon, 12 Apr 2021 11:58:28 +0000 (19:58 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 12 Apr 2021 16:07:38 +0000 (17:07 +0100)
commit4a46f88681ca514f9cb33b39312d0ec4e2ec84da
tree4baf30757f083faecadd3752898757bddccac8d3
parent4c84e42d29afa3dce201a4db747db2a5ba404604
spi: hisi-sfc-v3xx: drop unnecessary ACPI_PTR and related ifendif protection

We use ACPI_PTR() and related ifendif protection for the id table.
This is unnecessary as the struct acpi_device_id is defined in
mod_devicetable.h and doesn't rely on ACPI. The driver doesn't
use any ACPI apis, so it can be compiled in the ACPI=n case
with no warnings.

So remove the ACPI_PTR and related ifendif protection, also
replace the header acpi.h with mod_devicetable.h.

Acked-by: John Garry <john.garry@huawei.com>
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Link: https://lore.kernel.org/r/1618228708-37949-3-git-send-email-yangyicong@hisilicon.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-hisi-sfc-v3xx.c