Merge tag 'range-macro' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie...
authorSamuel Ortiz <sameo@linux.intel.com>
Fri, 25 Oct 2013 09:02:58 +0000 (11:02 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 25 Oct 2013 09:02:58 +0000 (11:02 +0200)
regmap: Helper macro for defining register ranges

A helper macro to make it a bit neater to define register ranges.

include/linux/regmap.h

index a10380bfbeac9b4c4d018c99a5c914d672833f04..7d3ae2be6869ea911db7cb57a308df43ab370b74 100644 (file)
@@ -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
This page took 0.028349 seconds and 5 git commands to generate.