mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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.org Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
7c33d85fed
commit
82a4a3ba33
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue