Lines Matching refs:dev
64 static int set_light_backlight(struct light_device_t *dev,
103 static int close_lights(struct light_device_t *dev)
105 if (dev)
106 free(dev);
116 int (*set_light) (struct light_device_t *dev,
126 struct light_device_t *dev = malloc(sizeof(struct light_device_t));
127 memset(dev, 0, sizeof(*dev));
129 dev->common.tag = HARDWARE_DEVICE_TAG;
130 dev->common.version = 0;
131 dev->common.module = (struct hw_module_t *)module;
132 dev->common.close = (int (*)(struct hw_device_t *))close_lights;
133 dev->set_light = set_light;
135 *device = (struct hw_device_t *)dev;