mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
Merge remote-tracking branches 'regulator/topic/max77686', 'regulator/topic/max77693', 'regulator/topic/max77802', 'regulator/topic/power-off' and 'regulator/topic/rk808' into regulator-next
This commit is contained in:
commit
92d07a8ff6
40 changed files with 623 additions and 313 deletions
|
@ -243,6 +243,8 @@ enum regulator_type {
|
|||
*
|
||||
* @enable_time: Time taken for initial enable of regulator (in uS).
|
||||
* @off_on_delay: guard time (in uS), before re-enabling a regulator
|
||||
*
|
||||
* @of_map_mode: Maps a hardware mode defined in a DeviceTree to a standard mode
|
||||
*/
|
||||
struct regulator_desc {
|
||||
const char *name;
|
||||
|
@ -285,6 +287,8 @@ struct regulator_desc {
|
|||
unsigned int enable_time;
|
||||
|
||||
unsigned int off_on_delay;
|
||||
|
||||
unsigned int (*of_map_mode)(unsigned int mode);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,24 +6,29 @@
|
|||
#ifndef __LINUX_OF_REG_H
|
||||
#define __LINUX_OF_REG_H
|
||||
|
||||
struct regulator_desc;
|
||||
|
||||
struct of_regulator_match {
|
||||
const char *name;
|
||||
void *driver_data;
|
||||
struct regulator_init_data *init_data;
|
||||
struct device_node *of_node;
|
||||
const struct regulator_desc *desc;
|
||||
};
|
||||
|
||||
#if defined(CONFIG_OF)
|
||||
extern struct regulator_init_data
|
||||
*of_get_regulator_init_data(struct device *dev,
|
||||
struct device_node *node);
|
||||
struct device_node *node,
|
||||
const struct regulator_desc *desc);
|
||||
extern int of_regulator_match(struct device *dev, struct device_node *node,
|
||||
struct of_regulator_match *matches,
|
||||
unsigned int num_matches);
|
||||
#else
|
||||
static inline struct regulator_init_data
|
||||
*of_get_regulator_init_data(struct device *dev,
|
||||
struct device_node *node)
|
||||
struct device_node *node,
|
||||
const struct regulator_desc *desc)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue