summaryrefslogtreecommitdiffstats
path: root/vibrator
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-02-10 15:44:04 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-02-10 15:44:04 -0800
commit6e5ad3c6e83b5acee8c9eaefdc58d1dd8a117715 (patch)
tree5c16b8149c32cfd34c5ca4c2408303b722f4d492 /vibrator
parent987df5db6d269300aa1b89af506cf18cf380be51 (diff)
downloadhardware_libhardware_legacy-6e5ad3c6e83b5acee8c9eaefdc58d1dd8a117715.zip
hardware_libhardware_legacy-6e5ad3c6e83b5acee8c9eaefdc58d1dd8a117715.tar.gz
hardware_libhardware_legacy-6e5ad3c6e83b5acee8c9eaefdc58d1dd8a117715.tar.bz2
auto import from //branches/cupcake/...@130745
Diffstat (limited to 'vibrator')
-rw-r--r--vibrator/vibrator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vibrator/vibrator.c b/vibrator/vibrator.c
index 3644356..22cc506 100644
--- a/vibrator/vibrator.c
+++ b/vibrator/vibrator.c
@@ -46,10 +46,10 @@ static int sendit(int timeout_ms)
return (ret == nwr) ? 0 : -1;
}
-int vibrator_on()
+int vibrator_on(int timeout_ms)
{
/* constant on, up to maximum allowed time */
- return sendit(-1);
+ return sendit(timeout_ms);
}
int vibrator_off()