ab8500_fg: match return type of wait_for_completion_timeout
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 9 Feb 2015 17:20:45 +0000 (12:20 -0500)
committerSebastian Reichel <sre@kernel.org>
Wed, 25 Feb 2015 21:47:12 +0000 (22:47 +0100)
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>
drivers/power/ab8500_fg.c

index 94d3b10..73288da 100644 (file)
@@ -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(
@@ -716,7 +716,7 @@ fail:
 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);