diff options
| author | Javier Martinez Canillas <[email protected]> | 2014-10-13 15:53:03 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-10-14 02:18:19 +0200 |
| commit | a20cd88e20e59ce11ebca84fac769654193c51e0 (patch) | |
| tree | 608d6eece0c3e67550438a7b8a57b74ee41c519e /tools/perf/scripts/python/net_dropmonitor.py | |
| 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.
[[email protected]: add comment clarifying ffs() use]
Signed-off-by: Javier Martinez Canillas <[email protected]>
Cc: Joe Perches <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions