staging: vt6656: CARDqGetNextTBTT replace code using do_div.
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 1 Jan 2014 19:20:40 +0000 (19:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2014 19:02:13 +0000 (11:02 -0800)
commit6e28024e1690bd68e7d19af3c96a1617b08c16ac
tree3cd1ae16a307a194777e2cdc6f66aa93633ee555
parent9acec059c0cef0bf086c738f4c0b1f4447782a48
staging: vt6656: CARDqGetNextTBTT replace code using do_div.

uBeaconInterval becomes u32

get next TBTT value using vendor's equation as shown.

This patch was checked against the original code
and yields exactly the same value.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/card.c