summaryrefslogtreecommitdiffstats
path: root/CREDITS
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>2014-10-13 15:53:03 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-14 02:18:19 +0200
commita20cd88e20e59ce11ebca84fac769654193c51e0 (patch)
tree608d6eece0c3e67550438a7b8a57b74ee41c519e /CREDITS
parentea33c31b621e296356ab74ea0237ba7761f2287e (diff)
downloadtalos-obmc-linux-a20cd88e20e59ce11ebca84fac769654193c51e0.tar.gz
talos-obmc-linux-a20cd88e20e59ce11ebca84fac769654193c51e0.zip
rtc: max77686: Use ffs() to calculate tm_wday
max77686_rtc_calculate_wday() is used to calculate the day of the week to be filled in struct rtc_time but that function only calculates the number of bits shifted. So the ffs() function can be used to find the first bit set instead of a special function. [akpm@linux-foundation.org: add comment clarifying ffs() use] Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud