aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regmap.h
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-10-28 13:01:35 -0700
committerMark Brown <broonie@linaro.org>2013-10-28 13:01:35 -0700
commitc435d5b9b855ca3d06d34e6b6005963cca72786a (patch)
tree8633f13b7bcc6995c14c6ff71a65821182af4876 /include/linux/regmap.h
parentMerge remote-tracking branch 'regmap/topic/multi' into regmap-next (diff)
parentregmap: add helper macro to set min/max range of register (diff)
downloadlinux-dev-c435d5b9b855ca3d06d34e6b6005963cca72786a.tar.xz
linux-dev-c435d5b9b855ca3d06d34e6b6005963cca72786a.zip
Merge remote-tracking branch 'regmap/topic/range' into regmap-next
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r--include/linux/regmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 336718382ebb..f12dca97b9d5 100644
--- a/include/linux/regmap.h
+++ b/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