Searched refs:led_cd (Results 1 – 1 of 1) sorted by relevance
46 static inline struct simatic_ipc_led *cdev_to_led(struct led_classdev *led_cd) in cdev_to_led() argument48 return container_of(led_cd, struct simatic_ipc_led, cdev); in cdev_to_led()51 static void simatic_ipc_led_set_io(struct led_classdev *led_cd, in simatic_ipc_led_set_io() argument54 struct simatic_ipc_led *led = cdev_to_led(led_cd); in simatic_ipc_led_set_io()69 static enum led_brightness simatic_ipc_led_get_io(struct led_classdev *led_cd) in simatic_ipc_led_get_io() argument71 struct simatic_ipc_led *led = cdev_to_led(led_cd); in simatic_ipc_led_get_io()73 return inw(SIMATIC_IPC_LED_PORT_BASE) & led->value ? LED_OFF : led_cd->max_brightness; in simatic_ipc_led_get_io()