Skip to content
Commit 019a5f56 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Pierre Ossman
Browse files

mmc: don't use weight32()



Using weight32() to determine if a value is a power of 2 is a rather
heavi weight solution.  The classic idiom is (x & (x - 1)) == 0, but
the kernel already provide a is_power_of_2 function for it.

Signed-off-by: default avatarNicolas Pitre <nico@cam.org>
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent c783837b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment