mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-03 15:03:22 +02:00
Extract usbdev declarations to a separate header.
This is a simple refactor that aims to simplify maintenance and to clarify file dependency inside the project. Currently, most of the declarations reside in programmer.h making it difficult to really understand file dependency. Change-Id: I9d819ea1c5bd51289d02189c1dff367ce6d25617 Signed-off-by: Antonio Vázquez Blanco <antoniovazquezblanco@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/84982 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Miklós Márton <martonmiklosqdev@gmail.com> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
This commit is contained in:

committed by
Anastasia Klimchuk

parent
3a1c0d0e85
commit
69a03a3ab1
@ -526,13 +526,4 @@ static inline bool spi_chip_4ba(const struct flashctx *const flash)
|
||||
(flash->chip->feature_bits & (FEATURE_4BA_ENTER | FEATURE_4BA_ENTER_WREN | FEATURE_4BA_ENTER_EAR7));
|
||||
}
|
||||
|
||||
/* usbdev.c */
|
||||
struct libusb_device_handle;
|
||||
struct libusb_context;
|
||||
struct libusb_device_handle *usb_dev_get_by_vid_pid_serial(
|
||||
struct libusb_context *usb_ctx, uint16_t vid, uint16_t pid, const char *serialno);
|
||||
struct libusb_device_handle *usb_dev_get_by_vid_pid_number(
|
||||
struct libusb_context *usb_ctx, uint16_t vid, uint16_t pid, unsigned int num);
|
||||
|
||||
|
||||
#endif /* !__PROGRAMMER_H__ */
|
||||
|
Reference in New Issue
Block a user