Skip to content

Commit

Permalink
ab8500_fg: match return type of wait_for_completion_timeout
Browse files Browse the repository at this point in the history
return type of wait_for_completion_timeout is unsigned long not int. as
timeout is used for wait_for_completion_timeout exclusively here its
type is simply changed to unsigned long.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
  • Loading branch information
Nicholas Mc Guire authored and Sebastian Reichel committed Feb 25, 2015
1 parent c75cfa9 commit 5ae6e2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/power/ab8500_fg.c
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ int ab8500_fg_inst_curr_finalize(struct ab8500_fg *di, int *res)
u8 low, high;
int val;
int ret;
int timeout;
unsigned long timeout;

if (!completion_done(&di->ab8500_fg_complete)) {
timeout = wait_for_completion_timeout(
Expand Down Expand Up @@ -716,7 +716,7 @@ int ab8500_fg_inst_curr_finalize(struct ab8500_fg *di, int *res)
int ab8500_fg_inst_curr_blocking(struct ab8500_fg *di)
{
int ret;
int timeout;
unsigned long timeout;
int res = 0;

ret = ab8500_fg_inst_curr_start(di);
Expand Down

0 comments on commit 5ae6e2a

Please sign in to comment.