Skip to content

Commit

Permalink
bitops: remove for_each_set_bit_cont()
Browse files Browse the repository at this point in the history
Remove for_each_set_bit_cont() after confirming that no one uses
for_each_set_bit_cont() anymore.

[sfr@canb.auug.org.au: regmap: cope with bitops API change]
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Robert Richter <robert.richter@amd.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Mar 23, 2012
1 parent 307b1cd commit 0a329d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/base/regmap/regcache-lzo.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ static int regcache_lzo_sync(struct regmap *map, unsigned int min,

lzo_blocks = map->cache;
i = min;
for_each_set_bit_cont(i, lzo_blocks[0]->sync_bmp,
for_each_set_bit_from(i, lzo_blocks[0]->sync_bmp,
lzo_blocks[0]->sync_bmp_nbits) {
if (i > max)
continue;
Expand Down
3 changes: 0 additions & 3 deletions include/linux/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ extern unsigned long __sw_hweight64(__u64 w);
(bit) < (size); \
(bit) = find_next_bit((addr), (size), (bit) + 1))

#define for_each_set_bit_cont(bit, addr, size) \
for_each_set_bit_from(bit, addr, size)

static __inline__ int get_bitmask_order(unsigned int count)
{
int order;
Expand Down

0 comments on commit 0a329d2

Please sign in to comment.