iio: adc: ti-adc128s052: Drop anti-pattern of ACPI_PTR() use
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 2 Jan 2023 17:34:49 +0000 (19:34 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 8 Jan 2023 12:12:10 +0000 (12:12 +0000)
commitc87d5e94fca8e2fc681a808608bddfb01878f791
tree411a64d307ad18376beb99484d71f446cdd549c0
parentd5f0da0c6972199a39d692309d9e0e09c57a3844
iio: adc: ti-adc128s052: Drop anti-pattern of ACPI_PTR() use

ACPI_PTR() is more harmful than helpful. For example, in this case
if CONFIG_ACPI=n, the ID table left unused and code is obfuscated
by ifdeffery.

Drop anti-pattern of ACPI_PTR() use.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230102173450.29882-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-adc128s052.c