regmap: Helper macro for defining register ranges

A helper macro to make it a bit neater to define register ranges.
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.14 (GNU/Linux)
 
 iQIcBAABAgAGBQJSaizGAAoJELSic+t+oim9rCIQAJOBnpP55rjb37gRvj/aoxDZ
 8Hm3EHNaztWjQ1XbUG5hxiyE8LPEk3H1r4610LjYWP63H25eLSXNpmrw0crzVyeU
 oVBz9mDU6vFfZLdNrXN+j59bfW/eKcSwBNh144/w468ylThp1DlRIbFtoh8HeRME
 ahbA3r0CBlwVQUrc2y8FmsLqFTtDckY55RMbujdD8qmysYNeBf3SOuvm5KZ68+x1
 7gcCbrC53EpX6fvybw/yatladcmlWEV+pm9RiGrAwaJGVBp77yJFBWXwdb+jtCMi
 /YkrvqQJi7bXoUoffA36y8aFxO2vUw9USGxiw/I+Cm8k3ob2FJ3pULWHHl39DbYj
 8bWpcc3nLCWhgimV5S6ghlSHV6ReFz6e+z8OaSusJL9ynCTe909yDmAOWMGw+cmA
 3+Isc4H2P5OnxU6Rar950qbiz8imxPAKT5I0JCuqXEvQ5XwKRdMeRtR1CzpkUW1D
 Rcv/1trm2zyY67TgCjHoHmovuRLEIbIgzIUxF0zJ4rJ3giso+R2hz5gLuCoT/V4I
 wx7I7d9E2nSLdejvtO6GDllomJUpVm4a68mZMn3eyAoA9oKDzkK4rVQtFATo86oQ
 uakFmEIoUu1jvTF9CAqxHH3P1CyyS/rZ1+gXvqw78PifVL1SHhbtVSGOfnhhUkTW
 nXzCOmwTXnr6e4TXAmrG
 =PYRW
 -----END PGP SIGNATURE-----

Merge tag 'range-macro' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap

regmap: Helper macro for defining register ranges

A helper macro to make it a bit neater to define register ranges.
This commit is contained in:
Samuel Ortiz 2013-10-25 11:02:58 +02:00
commit 46a99d03f9
1 changed files with 2 additions and 0 deletions

View 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