Skip to content

Commit f0892b8

Browse files
Pavel RoskinDominik Brodowski
authored andcommitted
[PATCH] pcmcia: Add macro to match PCMCIA cards by numeric ID and first vendor string
This is needed to distinguish Intersil and non-Intersil cards with numeric ID 0x0156, 0x0002. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
1 parent 4293565 commit f0892b8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎include/pcmcia/device_id.h‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@
7272
.prod_id = { (v1), (v2), (v3), (v4) }, \
7373
.prod_id_hash = { (vh1), (vh2), (vh3), (vh4) }, }
7474

75+
#define PCMCIA_DEVICE_MANF_CARD_PROD_ID1(manf, card, v1, vh1) { \
76+
.match_flags = PCMCIA_DEV_ID_MATCH_MANF_ID| \
77+
PCMCIA_DEV_ID_MATCH_CARD_ID| \
78+
PCMCIA_DEV_ID_MATCH_PROD_ID1, \
79+
.manf_id = (manf), \
80+
.card_id = (card), \
81+
.prod_id = { (v1), NULL, NULL, NULL }, \
82+
.prod_id_hash = { (vh1), 0, 0, 0 }, }
83+
7584

7685
/* multi-function devices */
7786

0 commit comments

Comments
 (0)