From: Javier Martinez Canillas Date: Mon, 13 Oct 2014 22:53:03 +0000 (-0700) Subject: rtc: max77686: Use ffs() to calculate tm_wday X-Git-Tag: omap-for-v3.19/prcm-cleanup~76^2~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a20cd88e20e59ce11ebca84fac769654193c51e0;p=pandora-kernel.git 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 Cc: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed