drm/i915/dsi: Move Crystal Cove PMIC panel GPIO lookup from mfd to the i915 driver
authorHans de Goede <hdegoede@redhat.com>
Mon, 16 Dec 2019 20:51:21 +0000 (21:51 +0100)
committerHans de Goede <hdegoede@redhat.com>
Fri, 3 Jan 2020 10:47:00 +0000 (11:47 +0100)
commit067d1cf717b8a1d8429f858fbc9b5db71b880e5c
tree32f9e617b4dc1edf3cee75778d240a4375c2c8b1
parent6c0a878ebaa43fc9d8d84ac4eacce9f6a9b974ac
drm/i915/dsi: Move Crystal Cove PMIC panel GPIO lookup from mfd to the i915 driver

Move the Crystal Cove PMIC panel GPIO lookup-table from
drivers/mfd/intel_soc_pmic_core.c to the i915 driver.

The moved looked-up table is adding a GPIO lookup to the i915 PCI
device and the GPIO subsys allows only one lookup table per device,

The intel_soc_pmic_core.c code only adds lookup-table entries for the
PMIC panel GPIO (as it deals only with the PMIC), but we also need to be
able to access some GPIOs on the SoC itself, which requires entries for
these GPIOs in the lookup-table.

Since the lookup-table is attached to the i915 PCI device it really
should be part of the i915 driver, this will also allow us to extend
it with GPIOs from other sources when necessary.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20191216205122.1850923-5-hdegoede@redhat.com
drivers/gpu/drm/i915/display/intel_dsi_vbt.c
drivers/mfd/intel_soc_pmic_core.c