Home | History | Annotate | Download | only in lights

Lines Matching defs:dev

30 static int set_light(struct light_device_t* dev,
32 ALOGI("%s: dev %p state %p", __FUNCTION__, dev, state);
39 static int close_lights(struct light_device_t* dev) {
40 free(dev);
46 struct light_device_t* dev = malloc(sizeof(struct light_device_t));
47 if (dev == NULL) {
50 memset(dev, 0, sizeof(*dev));
52 dev->common.tag = HARDWARE_DEVICE_TAG;
53 dev->common.version = 0;
54 dev->common.module = (struct hw_module_t*)module;
55 dev->common.close = (int (*)(struct hw_device_t*))close_lights;
56 dev->set_light = set_light;
57 *device = (struct hw_device_t*)dev;