Javier Martinez Canillas a20cd88e20 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>
2014-10-14 02:18:19 +02:00
..
2014-10-14 02:18:18 +02:00
2014-10-14 02:18:18 +02:00
2014-04-03 16:21:16 -07:00
2014-04-03 16:21:16 -07:00
2014-10-14 02:18:17 +02:00
2014-10-14 02:18:17 +02:00
2014-08-08 15:57:20 -07:00
2013-04-19 13:51:25 +02:00
2014-09-19 12:39:19 +02:00
2014-04-03 16:21:21 -07:00
2014-04-03 16:21:16 -07:00
2014-04-03 16:21:16 -07:00