mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-04 15:25:17 +02:00
tree: Make internal variables static
All these variables are only used in the files they are defined in, so they can be made static. (Backported as it untangles aliased global objects.) Change-Id: I1e55138adef540e9d3a2237aa5b289cb338c0608 Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Reviewed-on: https://review.coreboot.org/c/flashrom/+/33747 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/62612 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
@ -43,7 +43,7 @@
|
||||
#define REQTYPE_OTHER_IN (LIBUSB_ENDPOINT_IN | LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_OTHER) /* 0xC3 */
|
||||
#define REQTYPE_EP_OUT (LIBUSB_ENDPOINT_OUT | LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_ENDPOINT) /* 0x42 */
|
||||
#define REQTYPE_EP_IN (LIBUSB_ENDPOINT_IN | LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_ENDPOINT) /* 0xC2 */
|
||||
struct libusb_context *usb_ctx;
|
||||
static struct libusb_context *usb_ctx;
|
||||
static libusb_device_handle *dediprog_handle;
|
||||
static int dediprog_in_endpoint;
|
||||
static int dediprog_out_endpoint;
|
||||
@ -159,7 +159,7 @@ const struct dev_entry devs_dediprog[] = {
|
||||
};
|
||||
|
||||
static int dediprog_firmwareversion = FIRMWARE_VERSION(0, 0, 0);
|
||||
enum dediprog_devtype dediprog_devicetype = DEV_UNKNOWN;
|
||||
static enum dediprog_devtype dediprog_devicetype = DEV_UNKNOWN;
|
||||
|
||||
#if defined(LIBUSB_MAJOR) && defined(LIBUSB_MINOR) && defined(LIBUSB_MICRO) && \
|
||||
LIBUSB_MAJOR <= 1 && LIBUSB_MINOR == 0 && LIBUSB_MICRO < 9
|
||||
|
Reference in New Issue
Block a user