Skip to content

Commit

Permalink
regulator: bcm590xx: Set n_voltages for linear reg
Browse files Browse the repository at this point in the history
Fix the macro used to define linear range regulators to include the
number of voltages.

Signed-off-by: Tim Kryger <[email protected]>
Acked-by: Matt Porter <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
Tim Kryger authored and broonie committed Apr 10, 2014
1 parent 5481b34 commit 1e79140
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/regulator/bcm590xx-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ struct bcm590xx_info {
#define BCM590XX_REG_RANGES(_name, _ranges) \
{ \
.name = #_name, \
.n_voltages = 64, \
.n_linear_ranges = ARRAY_SIZE(_ranges), \
.linear_ranges = _ranges, \
}
Expand Down

0 comments on commit 1e79140

Please sign in to comment.