linux/drivers/acpi/pmic
Hans de Goede 2e5a7f7109 ACPI / PMIC: Stop xpower OPRegion handler relying on IIO
The intel_pmic_xpower code provides an OPRegion handler, which must be
available before other drivers using it are loaded, which can only be
ensured if both the mfd and opregion drivers are built in, which is why
the Kconfig option for intel_pmic_xpower is a bool.

The use of IIO is causing trouble for generic distro configs here as
distros will typically want to build IIO drivers as modules and there
really is no reason to use IIO here. The reading of the ADC value is a
single regmap_bulk_read, which is already protected against races by
the regmap-lock.

This commit removes the use of IIO, allowing distros to enable the
driver without needing to built IIO in and also actually simplifies
the code.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2017-04-20 12:43:43 +02:00
..
intel_pmic_bxtwc.c ACPI / PMIC: remove modular references from non-modular code 2016-07-16 03:03:14 +02:00
intel_pmic_chtwc.c ACPI / PMIC: Add opregion driver for Intel CHT Whiskey Cove PMIC 2017-04-20 12:43:41 +02:00
intel_pmic_crc.c ACPI / PMIC: modify the pen function signature to take bit field 2016-06-24 15:25:37 +02:00
intel_pmic_xpower.c ACPI / PMIC: Stop xpower OPRegion handler relying on IIO 2017-04-20 12:43:43 +02:00
intel_pmic.c ACPI / PMIC: remove modular references from non-modular code 2016-07-16 03:03:14 +02:00
intel_pmic.h ACPI / PMIC: modify the pen function signature to take bit field 2016-06-24 15:25:37 +02:00