Searched hist:"072 c7d3438888ca424e9d44e11f5d870749ba052" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/iio/accel/ |
H A D | mma7660.c | diff 072c7d3438888ca424e9d44e11f5d870749ba052 Thu Jun 16 16:24:51 CEST 2022 Andy Shevchenko <andriy.shevchenko@linux.intel.com> iio: accel: mma7660: Drop wrong use of ACPI_PTR()
ACPI_PTR() is more harmful than helpful. For example, in this case if CONFIG_ACPI=n, the ID table left unused which is not what we want.
Instead of making linker to drop a section, drop ACPI_PTR().
As a side effect this makes driver ACPI and OF clean.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20220616142451.10322-1-andriy.shevchenko@linux.intel.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
|