Skip to content

Commit

Permalink
Merge tag 'range-macro' of git://git.kernel.org/pub/scm/linux/kernel/…
Browse files Browse the repository at this point in the history
…git/broonie/regmap

regmap: Helper macro for defining register ranges

A helper macro to make it a bit neater to define register ranges.
  • Loading branch information
Samuel Ortiz committed Oct 25, 2013
2 parents 501d609 + 6112fe6 commit 46a99d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/regmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ struct regmap_range {
unsigned int range_max;
};

#define regmap_reg_range(low, high) { .range_min = low, .range_max = high, }

/*
* A table of ranges including some yes ranges and some no ranges.
* If a register belongs to a no_range, the corresponding check function
Expand Down

0 comments on commit 46a99d0

Please sign in to comment.