All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/2] Introduce BITS_MASK macro
@ 2013-10-31 11:53 srinivas.kandagatla
  2013-10-31 11:53 ` [PATCH RFC 1/2] bitops: introduce " srinivas.kandagatla
  2013-10-31 11:54 ` [PATCH RFC 2/2] regmap: move to using " srinivas.kandagatla
  0 siblings, 2 replies; 5+ messages in thread
From: srinivas.kandagatla @ 2013-10-31 11:53 UTC (permalink / raw)
  To: linux-kernel; +Cc: Mark Brown, srinivas.kandagatla, Greg Kroah-Hartman

From: Srinivas Kandagatla <srinivas.kandagatla@st.com>

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-10-31 15:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-31 11:53 [PATCH RFC 0/2] Introduce BITS_MASK macro srinivas.kandagatla
2013-10-31 11:53 ` [PATCH RFC 1/2] bitops: introduce " srinivas.kandagatla
2013-10-31 11:54 ` [PATCH RFC 2/2] regmap: move to using " srinivas.kandagatla
2013-10-31 15:38   ` Mark Brown
2013-10-31 15:48     ` srinivas kandagatla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.