Home
last modified time | relevance | path

Searched refs:usbport_data (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/usb/core/
H A Dledtrig-usbport.c40 static bool usbport_trig_usb_dev_observed(struct usbport_trig_data *usbport_data, in usbport_trig_usb_dev_observed() argument
48 list_for_each_entry(port, &usbport_data->ports, list) { in usbport_trig_usb_dev_observed()
59 struct usbport_trig_data *usbport_data = data; in usbport_trig_usb_dev_check() local
61 if (usbport_trig_usb_dev_observed(usbport_data, usb_dev)) in usbport_trig_usb_dev_check()
62 usbport_data->count++; in usbport_trig_usb_dev_check()
70 static void usbport_trig_update_count(struct usbport_trig_data *usbport_data) in usbport_trig_update_count() argument
72 struct led_classdev *led_cdev = usbport_data->led_cdev; in usbport_trig_update_count()
74 usbport_data->count = 0; in usbport_trig_update_count()
75 usb_for_each_dev(usbport_data, usbport_trig_usb_dev_check); in usbport_trig_update_count()
76 led_set_brightness(led_cdev, usbport_data->count ? LED_FULL : LED_OFF); in usbport_trig_update_count()
[all …]