Add an error indicating that given line is currently in use.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
"GPIO line not reserved",
"no events configured on GPIO line",
"GPIO lines in bulk don't belong to the same gpiochip",
+ "GPIO line currently in use",
};
static void set_last_error(int errnum)
/**< The caller has not configured any events on this line. */
GPIOD_EBULKINCOH,
/**< Not all lines in bulk belong to the same GPIO chip. */
+ GPIOD_ELINEBUSY,
+ /**< This line is currently in use. */
__GPIOD_MAX_ERR,
/**< Private: number of libgpiod-specific error numbers. */
};