Lines Matching refs:dev
33 char const *const LED_FILE = "/dev/an30259a_leds";
83 static int set_light_backlight(struct light_device_t *dev,
96 static int close_lights(struct light_device_t *dev)
99 if (dev)
100 free(dev);
167 static int set_light_leds_notifications(struct light_device_t *dev,
173 static int set_light_leds_attention(struct light_device_t *dev,
182 int (*set_light)(struct light_device_t *dev,
196 struct light_device_t *dev = malloc(sizeof(struct light_device_t));
197 memset(dev, 0, sizeof(*dev));
199 dev->common.tag = HARDWARE_DEVICE_TAG;
200 dev->common.version = 0;
201 dev->common.module = (struct hw_module_t *)module;
202 dev->common.close = (int (*)(struct hw_device_t *))close_lights;
203 dev->set_light = set_light;
205 *device = (struct hw_device_t *)dev;