Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: adc: ti-adc109s102: drop ACPI_PTR() and CONFIG_ACPI guards

The complexity of config guards needed for ACPI_PTR() is not worthwhile
for the small amount of saved data. This example was doing it correctly
but I am proposing dropping this so as to reduce chance of cut and paste
where it is done wrong.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20231231183514.566609-25-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

+1 -3
+1 -3
drivers/iio/adc/ti-adc108s102.c
··· 293 293 }; 294 294 MODULE_DEVICE_TABLE(of, adc108s102_of_match); 295 295 296 - #ifdef CONFIG_ACPI 297 296 static const struct acpi_device_id adc108s102_acpi_ids[] = { 298 297 { "INT3495", 0 }, 299 298 { } 300 299 }; 301 300 MODULE_DEVICE_TABLE(acpi, adc108s102_acpi_ids); 302 - #endif 303 301 304 302 static const struct spi_device_id adc108s102_id[] = { 305 303 { "adc108s102", 0 }, ··· 309 311 .driver = { 310 312 .name = "adc108s102", 311 313 .of_match_table = adc108s102_of_match, 312 - .acpi_match_table = ACPI_PTR(adc108s102_acpi_ids), 314 + .acpi_match_table = adc108s102_acpi_ids, 313 315 }, 314 316 .probe = adc108s102_probe, 315 317 .id_table = adc108s102_id,