Browse Source

Merge remote-tracking branch 'regmap/topic/range' into regmap-next

Mark Brown 11 years ago
parent
commit
c435d5b9b8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/linux/regmap.h

+ 2 - 0
include/linux/regmap.h

@@ -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