Merge tag 'for-v4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply
Pull power supply and reset changes from Sebastian Reichel: "New chip/feature support: - bq27xxx: support updating battery config from DT - bq24190: support loading battery charge info from DT - LTC2941: add LTC2942/LTC2944 support - max17042: add ACPI support - max1721x: new driver Misc: - Move bq27xxx w1 driver from w1 into power-supply subsystem - Introduce power_supply_set_input_current_limit_from_supplier - constify stuff - some minor fixes" * tag 'for-v4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (39 commits) power: supply: bq27xxx: enable writing capacity values for bq27421 power: supply: bq24190_charger: Get input_current_limit from our supplier power: supply: bq24190_charger: Export 5V boost converter as regulator power: supply: bq24190_charger: Add power_supply_battery_info support power: supply: bq24190_charger: Add property system-minimum-microvolt power: supply: bq24190_charger: Enable devicetree config dt-bindings: power: supply: Add docs for TI BQ24190 battery charger power: supply: bq27xxx: Remove duplicate chip data arrays power: supply: bq27xxx: Enable data memory update for certain chips power: supply: bq27xxx: Add chip IDs for previously shadowed chips power: supply: bq27xxx: Create single chip data table power: supply: bq24190_charger: Add ti,bq24192i to devicetree table power: supply: bq24190_charger: Add input_current_limit property power: supply: Add power_supply_set_input_current_limit_from_supplier helper power: supply: max17042_battery: Fix compiler warning power: supply: core: Delete two error messages for a failed memory allocation in power_supply_check_supplies() power: supply: make device_attribute const power: supply: max17042_battery: Fix ACPI interrupt issues power: supply: max17042_battery: Add support for ACPI enumeration power: supply: lp8788: Make several arrays static const * const ...
This commit is contained in:
18
include/linux/power/bq24190_charger.h
Normal file
18
include/linux/power/bq24190_charger.h
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Platform data for the TI bq24190 battery charger driver.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
#ifndef _BQ24190_CHARGER_H_
|
||||
#define _BQ24190_CHARGER_H_
|
||||
|
||||
#include <linux/regulator/machine.h>
|
||||
|
||||
struct bq24190_platform_data {
|
||||
const struct regulator_init_data *regulator_init_data;
|
||||
};
|
||||
|
||||
#endif
|
@@ -6,6 +6,7 @@ enum bq27xxx_chip {
|
||||
BQ27010, /* bq27010, bq27210 */
|
||||
BQ2750X, /* bq27500 deprecated alias */
|
||||
BQ2751X, /* bq27510, bq27520 deprecated alias */
|
||||
BQ2752X,
|
||||
BQ27500, /* bq27500/1 */
|
||||
BQ27510G1, /* bq27510G1 */
|
||||
BQ27510G2, /* bq27510G2 */
|
||||
@@ -15,26 +16,16 @@ enum bq27xxx_chip {
|
||||
BQ27520G3, /* bq27520G3 */
|
||||
BQ27520G4, /* bq27520G4 */
|
||||
BQ27530, /* bq27530, bq27531 */
|
||||
BQ27531,
|
||||
BQ27541, /* bq27541, bq27542, bq27546, bq27742 */
|
||||
BQ27542,
|
||||
BQ27546,
|
||||
BQ27742,
|
||||
BQ27545, /* bq27545 */
|
||||
BQ27421, /* bq27421, bq27425, bq27441, bq27621 */
|
||||
};
|
||||
|
||||
/**
|
||||
* struct bq27xxx_plaform_data - Platform data for bq27xxx devices
|
||||
* @name: Name of the battery.
|
||||
* @chip: Chip class number of this device.
|
||||
* @read: HDQ read callback.
|
||||
* This function should provide access to the HDQ bus the battery is
|
||||
* connected to.
|
||||
* The first parameter is a pointer to the battery device, the second the
|
||||
* register to be read. The return value should either be the content of
|
||||
* the passed register or an error value.
|
||||
*/
|
||||
struct bq27xxx_platform_data {
|
||||
const char *name;
|
||||
enum bq27xxx_chip chip;
|
||||
int (*read)(struct device *dev, unsigned int);
|
||||
BQ27425,
|
||||
BQ27441,
|
||||
BQ27621,
|
||||
};
|
||||
|
||||
struct bq27xxx_device_info;
|
||||
@@ -63,7 +54,7 @@ struct bq27xxx_device_info {
|
||||
struct device *dev;
|
||||
int id;
|
||||
enum bq27xxx_chip chip;
|
||||
bool ram_chip;
|
||||
u32 opts;
|
||||
const char *name;
|
||||
struct bq27xxx_dm_reg *dm_regs;
|
||||
u32 unseal_key;
|
||||
|
@@ -332,6 +332,8 @@ extern int power_supply_get_battery_info(struct power_supply *psy,
|
||||
struct power_supply_battery_info *info);
|
||||
extern void power_supply_changed(struct power_supply *psy);
|
||||
extern int power_supply_am_i_supplied(struct power_supply *psy);
|
||||
extern int power_supply_set_input_current_limit_from_supplier(
|
||||
struct power_supply *psy);
|
||||
extern int power_supply_set_battery_charged(struct power_supply *psy);
|
||||
|
||||
#ifdef CONFIG_POWER_SUPPLY
|
||||
|
Reference in New Issue
Block a user