platform/x86: int3472: discrete: Add alternative "AVDD" regulator supply name
authorHans de Goede <hdegoede@redhat.com>
Fri, 16 Jun 2023 17:21:30 +0000 (19:21 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 20 Jun 2023 10:39:27 +0000 (12:39 +0200)
Add an "AVDD" regulator supply name alias to the supply-map which
gets registered for the INT3472 GPIO regulator.

This is necessary for the ov2680 driver which expects "AVDD" rather then
"avdd". Updating the ov2680 driver to use "avdd" is not possible because
that will break compatibility with existing DT / DTB files.

Tested-by: Hao Yao <hao.yao@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20230616172132.37859-5-hdegoede@redhat.com
drivers/platform/x86/intel/int3472/clk_and_regulator.c
drivers/platform/x86/intel/int3472/common.h

index a0c275742db8341d2b909bda618c120daad83650..6b5e5381786685a43a5833615adf31902e0115d1 100644 (file)
@@ -246,6 +246,7 @@ void skl_int3472_unregister_clock(struct int3472_discrete_device *int3472)
  */
 static const char * const skl_int3472_regulator_map_supplies[] = {
        "avdd",
+       "AVDD",
 };
 
 static_assert(ARRAY_SIZE(skl_int3472_regulator_map_supplies) ==
index fd2a3d3884fa8eb7c1364516c71ac332da20e265..9f29baa138609f46a7ede03ef2943f4ba9a457e0 100644 (file)
@@ -28,7 +28,7 @@
 
 #define GPIO_REGULATOR_NAME_LENGTH                             21
 #define GPIO_REGULATOR_SUPPLY_NAME_LENGTH                      9
-#define GPIO_REGULATOR_SUPPLY_MAP_COUNT                                1
+#define GPIO_REGULATOR_SUPPLY_MAP_COUNT                                2
 
 #define INT3472_LED_MAX_NAME_LEN                               32