From: Srinivas Kandagatla <[email protected]> This patch series introduces BITS_MASK macro which creates a mask for a given lsb and msb bit locations. The usage of masks spread over mutiple bits is becoming very common for example with regmap_update_bits kind of apis. Having a common macro for this makes much sense and is clean and readable way to encode the mask rather than having an hex number for a mask.
Second patch is to show an example usage of this new macro in regmap. Comments ? Thanks, srini Srinivas Kandagatla (2): bitops: introduce BITS_MASK macro regmap: move to using BITS_MASK macro drivers/base/regmap/regmap.c | 3 +-- include/linux/bitops.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

