Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312487
b: refs/heads/master
c: 15719cc
h: refs/heads/master
i:
  312485: f9840d1
  312483: efa0bbe
  312479: e9f04db
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Mark Brown committed Jun 19, 2012
1 parent 9d91519 commit 6b1df48
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dfad84aeab5f71b33a12e6803a809f698bdef5a2
refs/heads/master: 15719ccc274981b19ad8fe9ac20c94249de8a257
5 changes: 3 additions & 2 deletions trunk/drivers/regulator/fixed-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ static void regulator_fixed_release(struct device *dev)
* @name: name to be used for the regulator
* @supplies: consumers for this regulator
* @num_supplies: number of consumers
* @uv: voltage in microvolts
*/
struct platform_device *regulator_register_always_on(int id, const char *name,
struct regulator_consumer_supply *supplies, int num_supplies)
struct regulator_consumer_supply *supplies, int num_supplies, int uv)
{
struct fixed_regulator_data *data;

Expand All @@ -40,7 +41,7 @@ struct platform_device *regulator_register_always_on(int id, const char *name,
return NULL;
}

data->cfg.microvolts = 0;
data->cfg.microvolts = uv;
data->cfg.gpio = -EINVAL;
data->cfg.enabled_at_boot = 1;
data->cfg.init_data = &data->init_data;
Expand Down
6 changes: 3 additions & 3 deletions trunk/include/linux/regulator/fixed.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ struct regulator_consumer_supply;

#if IS_ENABLED(CONFIG_REGULATOR)
struct platform_device *regulator_register_always_on(int id, const char *name,
struct regulator_consumer_supply *supplies, int num_supplies);
struct regulator_consumer_supply *supplies, int num_supplies, int uv);
#else
static inline struct platform_device *regulator_register_always_on(int id, const char *name,
struct regulator_consumer_supply *supplies, int num_supplies)
struct regulator_consumer_supply *supplies, int num_supplies, int uv)
{
return NULL;
}
#endif

#define regulator_register_fixed(id, s, ns) regulator_register_always_on(id, \
"fixed-dummy", s, ns)
"fixed-dummy", s, ns, 0)

#endif

0 comments on commit 6b1df48

Please sign in to comment.