Skip to content

Commit ebeb3ff

Browse files
committed
platform/x86: int3472: discrete: Add alternative "AVDD" regulator supply name
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 <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Reviewed-by: Daniel Scally <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f1a5825 commit ebeb3ff

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/platform/x86/intel/int3472/clk_and_regulator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ void skl_int3472_unregister_clock(struct int3472_discrete_device *int3472)
246246
*/
247247
static const char * const skl_int3472_regulator_map_supplies[] = {
248248
"avdd",
249+
"AVDD",
249250
};
250251

251252
static_assert(ARRAY_SIZE(skl_int3472_regulator_map_supplies) ==

drivers/platform/x86/intel/int3472/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#define GPIO_REGULATOR_NAME_LENGTH 21
3030
#define GPIO_REGULATOR_SUPPLY_NAME_LENGTH 9
31-
#define GPIO_REGULATOR_SUPPLY_MAP_COUNT 1
31+
#define GPIO_REGULATOR_SUPPLY_MAP_COUNT 2
3232

3333
#define INT3472_LED_MAX_NAME_LEN 32
3434

0 commit comments

Comments
 (0)