Lines Matching +full:on +full:- +full:flash

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * LED Flash class interface
17 * Supported led fault bits - must be kept in synch
34 /* set flash brightness */
37 /* get flash brightness */
40 /* set flash strobe state */
42 /* get flash strobe state */
44 /* set flash timeout */
46 /* get the flash LED fault */
51 * Current value of a flash setting along
69 /* flash led specific ops */
72 /* flash brightness value in microamperes along with its constraints */
75 /* flash timeout value in microseconds along with its constraints */
78 /* LED Flash class sysfs groups */
89 * led_classdev_flash_register_ext - register a new object of LED class with
90 * init data and with support for flash LEDs
91 * @parent: LED flash controller device this flash LED is driven by
93 * @init_data: the LED class flash device initialization data
95 * Returns: 0 on success or negative error value on failure
102 * led_classdev_flash_unregister - unregisters an object of led_classdev class
103 * with support for flash LEDs
104 * @fled_cdev: the flash LED to unregister
131 * led_set_flash_strobe - setup flash strobe
132 * @fled_cdev: the flash LED to set strobe on
133 * @state: 1 - strobe flash, 0 - stop flash strobe
135 * Strobe the flash LED.
137 * Returns: 0 on success or negative error value on failure
143 return -EINVAL; in led_set_flash_strobe()
144 return fled_cdev->ops->strobe_set(fled_cdev, state); in led_set_flash_strobe()
148 * led_get_flash_strobe - get flash strobe status
149 * @fled_cdev: the flash LED to query
150 * @state: 1 - flash is strobing, 0 - flash is off
152 * Check whether the flash is strobing at the moment.
154 * Returns: 0 on success or negative error value on failure
160 return -EINVAL; in led_get_flash_strobe()
161 if (fled_cdev->ops->strobe_get) in led_get_flash_strobe()
162 return fled_cdev->ops->strobe_get(fled_cdev, state); in led_get_flash_strobe()
164 return -EINVAL; in led_get_flash_strobe()
168 * led_set_flash_brightness - set flash LED brightness
169 * @fled_cdev: the flash LED to set
172 * Set a flash LED's brightness.
174 * Returns: 0 on success or negative error value on failure
180 * led_update_flash_brightness - update flash LED brightness
181 * @fled_cdev: the flash LED to query
183 * Get a flash LED's current brightness and update led_flash->brightness
186 * Returns: 0 on success or negative error value on failure
191 * led_set_flash_timeout - set flash LED timeout
192 * @fled_cdev: the flash LED to set
193 * @timeout: the flash timeout to set it to
195 * Set the flash strobe duration.
197 * Returns: 0 on success or negative error value on failure
202 * led_get_flash_fault - get the flash LED fault
203 * @fled_cdev: the flash LED to query
204 * @fault: bitmask containing flash faults
206 * Get the flash LED fault.
208 * Returns: 0 on success or negative error value on failure