mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-16 02:14:58 +00:00
79d35365a5
The bq25890_charger code supports enabling/disabling the boost converter based on usb-phy notifications. But the usb-phy framework is not used on all boards/platforms. At support for registering the Vbus boost converter as a standard regulator when there is no usb-phy on the board. Also add support for providing regulator_init_data through platform_data for use on boards where device-tree is not used and the platform code must thus provide the regulator_init_data. Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
16 lines
296 B
C
16 lines
296 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Platform data for the TI bq25890 battery charger driver.
|
|
*/
|
|
|
|
#ifndef _BQ25890_CHARGER_H_
|
|
#define _BQ25890_CHARGER_H_
|
|
|
|
struct regulator_init_data;
|
|
|
|
struct bq25890_platform_data {
|
|
const struct regulator_init_data *regulator_init_data;
|
|
};
|
|
|
|
#endif
|