Lines Matching defs:vibradev
76 static int vibra_on(vibrator_device_t* vibradev __unused, unsigned int timeout_ms)
82 static int vibra_off(vibrator_device_t* vibradev __unused)
100 vibrator_device_t *vibradev = calloc(1, sizeof(vibrator_device_t));
102 if (!vibradev) {
107 vibradev->common.tag = HARDWARE_DEVICE_TAG;
108 vibradev->common.module = (hw_module_t *) module;
109 vibradev->common.version = HARDWARE_DEVICE_API_VERSION(1,0);
110 vibradev->common.close = vibra_close;
112 vibradev->vibrator_on = vibra_on;
113 vibradev->vibrator_off = vibra_off;
115 *device = (hw_device_t *) vibradev;