Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0b32fa1 authored by Lee Jones's avatar Lee Jones
Browse files

mfd: ab8500-gpadc: Change to usleep_range() for greater resolution



The resolution of msleep is related to HZ, so with HZ set to
100 any msleep of less than 10ms will become ~10ms.

Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 5a4bac6e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -344,7 +344,7 @@ int ab8500_gpadc_read_raw(struct ab8500_gpadc *gpadc, u8 channel)
		  * Delay might be needed for ABB8500 cut 3.0, if not, remove
		  * when hardware will be available
		  */
			msleep(1);
			usleep_range(1000, 1000);
			break;
		}
		/* Intentional fallthrough */