]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: int3472: Pass tps68470_regulator_platform_data to the tps68470-regulato...
authorHans de Goede <hdegoede@redhat.com>
Fri, 3 Dec 2021 10:28:53 +0000 (11:28 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 13 Dec 2021 10:44:50 +0000 (11:44 +0100)
commite038646428051e2e6c1cbe5f8dc12769bf5a4994
treec92458cae6c593c8f7953ff02a995f0d902a93b2
parent4eafb9d82a001160e2cb856ea1a5f397b80ce940
platform/x86: int3472: Pass tps68470_regulator_platform_data to the tps68470-regulator MFD-cell

Pass tps68470_regulator_platform_data to the tps68470-regulator
MFD-cell, specifying the voltages of the various regulators and
tying the regulators to the sensor supplies so that sensors which use
the TPS68470 can find their regulators.

Since the voltages and supply connections are board-specific, this
introduces a DMI matches int3472_tps68470_board_data struct which
contains the necessary per-board info.

This per-board info also includes GPIO lookup information for the
sensor IO lines which may be connected to the tps68470 GPIOs.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20211203102857.44539-11-hdegoede@redhat.com
drivers/platform/x86/intel/int3472/Makefile
drivers/platform/x86/intel/int3472/tps68470.c
drivers/platform/x86/intel/int3472/tps68470.h [new file with mode: 0644]
drivers/platform/x86/intel/int3472/tps68470_board_data.c [new file with mode: 0644]