Skip to content

Commit b30a034

Browse files
committed
drivers/bcmxcp*: rename comm_upsdrv_info => bcmxcp_comm_upsdrv_info to avoid linker conflict with libusb{0,1}.c [#2270]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 1aae54b commit b30a034

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

drivers/bcmxcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ upsdrv_info_t upsdrv_info = {
135135
"Alf Høgemark <alf@i100>\n" \
136136
"Gavrilov Igor",
137137
DRV_STABLE,
138-
{ &comm_upsdrv_info, NULL }
138+
{ &bcmxcp_comm_upsdrv_info, NULL }
139139
};
140140

141141
static uint16_t get_word(const unsigned char*);

drivers/bcmxcp_io.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ void upsdrv_cleanup(void);
1717
void upsdrv_reconnect(void);
1818
void upsdrv_comm_good(void);
1919

20-
extern upsdrv_info_t comm_upsdrv_info;
20+
extern upsdrv_info_t bcmxcp_comm_upsdrv_info;
2121

2222
#endif /* BCMXCP_IO__ */

drivers/bcmxcp_ser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#define SUBDRIVER_VERSION "0.22"
1010

1111
/* communication driver description structure */
12-
upsdrv_info_t comm_upsdrv_info = {
12+
upsdrv_info_t bcmxcp_comm_upsdrv_info = {
1313
SUBDRIVER_NAME,
1414
SUBDRIVER_VERSION,
1515
NULL,

drivers/bcmxcp_usb.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414
#define SUBDRIVER_NAME "USB communication subdriver"
1515
#define SUBDRIVER_VERSION "0.28"
1616

17-
/* communication driver description structure */
18-
upsdrv_info_t comm_upsdrv_info = {
17+
/* communication driver description structure
18+
* NOTE: Renamed from comm_upsdrv_info to avoid conflict
19+
* with that defined in libusb{0,1}.c
20+
*/
21+
upsdrv_info_t bcmxcp_comm_upsdrv_info = {
1922
SUBDRIVER_NAME,
2023
SUBDRIVER_VERSION,
2124
NULL,

0 commit comments

Comments
 (0)