Skip to content

Commit 7954dd5

Browse files
committed
usb: Make usb_create_context() static
This function is not used anywhere outside of usb.c. Signed-off-by: Paul Cercueil <[email protected]>
1 parent b26313b commit 7954dd5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

iio-private.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,6 @@ struct iio_context * local_create_context(void);
249249
struct iio_context * network_create_context(const char *hostname);
250250
struct iio_context * xml_create_context_mem(const char *xml, size_t len);
251251
struct iio_context * xml_create_context(const char *xml_file);
252-
struct iio_context * usb_create_context(unsigned int bus, uint16_t address,
253-
uint16_t intrfc);
254252
struct iio_context * usb_create_context_from_uri(const char *uri);
255253
struct iio_context * serial_create_context_from_uri(const char *uri);
256254

usb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,8 +804,8 @@ static int usb_populate_context_attrs(struct iio_context *ctx,
804804
return 0;
805805
}
806806

807-
struct iio_context * usb_create_context(unsigned int bus,
808-
uint16_t address, uint16_t intrfc)
807+
static struct iio_context * usb_create_context(unsigned int bus,
808+
uint16_t address, uint16_t intrfc)
809809
{
810810
libusb_context *usb_ctx;
811811
libusb_device_handle *hdl = NULL;

0 commit comments

Comments
 (0)