OSDN Git Service

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)
commit19d8d6e36b4b7aa2a9a9cb64687572a1d9f234bf
treec92458cae6c593c8f7953ff02a995f0d902a93b2
parentd3d76ae139a7ba2162ab86f54f722d4da8c3bc95
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]