mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 14:24:11 +08: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
@ -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…
Reference in New Issue
Block a user