Commit 82a4a3ba authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: dvb-usb: Add helper macros for using USB VID/PID

In order to use designated initializers and to avoid avoid big lines
at the USB ID tables, define some helper macros.

Link: https://lore.kernel.org/linux-media/f82e376dea2e9b922f51a03d1e7730b03e49cc7d.1648499509.git.mchehab@kernel.orgSigned-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 7c33d85f
......@@ -10,6 +10,14 @@
#ifndef _DVB_USB_IDS_H_
#define _DVB_USB_IDS_H_
#include <linux/usb.h>
#define DVB_USB_DEV(pid, vid) \
[vid] = { USB_DEVICE(USB_VID_ ## pid, USB_PID_ ## vid) }
#define DVB_USB_DEV_VER(pid, vid, lo, hi) \
[vid] = { USB_DEVICE_VER(USB_VID_ ## pid, USB_PID_ ## vid, lo, hi) }
/* Vendor IDs */
#define USB_VID_774 0x7a69
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment