regmap: add helper macro to set min/max range of register
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 20 Sep 2013 12:30:10 +0000 (18:00 +0530)
committerMark Brown <broonie@linaro.org>
Fri, 20 Sep 2013 16:50:46 +0000 (17:50 +0100)
commit6112fe60ac1bd1e68da8cc4248289d6e48015f9b
tree71b9eb2ed44cda8d5f323bafaa2408b9215830ee
parent272b98c6455f00884f0350f775c5342358ebb73f
regmap: add helper macro to set min/max range of register

Add helper macro to set the min and max value of the register range.

This is useful when initialising the register ranges of the device like

static const struct regmap_range readable_ranges[] = {
regmap_reg_range(DEVICE_REG0, DEVICE_REG10),
};

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
include/linux/regmap.h