summaryrefslogtreecommitdiffstats
path: root/backend_shinkos1245.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-04-16 20:52:02 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-04-16 21:12:54 -0400
commit48adbc4a2088a42a94fa73672609b599a93d9438 (patch)
treefd48af741f267fff7c796a7b42ef713c42d95494 /backend_shinkos1245.c
parentafcd11353bcc8957ef9ee227911e3df19726e06c (diff)
downloadselphy_print-48adbc4a2088a42a94fa73672609b599a93d9438.tar.gz
selphy_print-48adbc4a2088a42a94fa73672609b599a93d9438.tar.bz2
selphy_print-48adbc4a2088a42a94fa73672609b599a93d9438.zip
misc: Get rid of all USB_VID_*/USB_PID_* definitions
Directly reference the IDs in the lookup tables, like in linux-kernel
Diffstat (limited to 'backend_shinkos1245.c')
-rw-r--r--backend_shinkos1245.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/backend_shinkos1245.c b/backend_shinkos1245.c
index 161a8bb..498b873 100644
--- a/backend_shinkos1245.c
+++ b/backend_shinkos1245.c
@@ -1275,10 +1275,6 @@ static int shinkos1245_query_stats(void *vctx, struct printerstats *stats)
return CUPS_BACKEND_OK;
}
-/* Exported */
-#define USB_VID_SHINKO 0x10CE
-#define USB_PID_SHINKO_S1245 0x0007
-
static const char *shinkos1245_prefixes[] = {
"shinkos1245", /* Family Name */
NULL
@@ -1299,8 +1295,8 @@ const struct dyesub_backend shinkos1245_backend = {
.query_markers = shinkos1245_query_markers,
.query_stats = shinkos1245_query_stats,
.devices = {
- { USB_VID_SHINKO, USB_PID_SHINKO_S1245, P_SHINKO_S1245, NULL, "shinko-chcs1245"},
- { USB_VID_SHINKO, USB_PID_SHINKO_S1245, P_SHINKO_S1245, NULL, "sinfonia-chcs1245"}, /* Duplicate */
+ { 0x10ce, 0x0007, P_SHINKO_S1245, NULL, "shinko-chcs1245"},
+ { 0x10ce, 0x0007, P_SHINKO_S1245, NULL, "sinfonia-chcs1245"}, /* Duplicate */
{ 0, 0, 0, NULL, NULL}
}
};