diff options
author | Javier Martinez Canillas <javier.martinez@collabora.co.uk> | 2014-10-13 15:53:03 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-14 02:18:19 +0200 |
commit | a20cd88e20e59ce11ebca84fac769654193c51e0 (patch) | |
tree | 608d6eece0c3e67550438a7b8a57b74ee41c519e /drivers/rtc/Makefile | |
parent | ea33c31b621e296356ab74ea0237ba7761f2287e (diff) |
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 'drivers/rtc/Makefile')
0 files changed, 0 insertions, 0 deletions