mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
Use system macro instead of own hand-rolled one.
This commit is contained in:
parent
6b97b1b3fe
commit
42cb359e6e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261508
@ -142,7 +142,6 @@ static const struct {
|
||||
0, HDAA_QUIRK_OVREF,
|
||||
0 }
|
||||
};
|
||||
#define HDAC_QUIRKS_LEN (sizeof(hdac_quirks) / sizeof(hdac_quirks[0]))
|
||||
|
||||
static void
|
||||
hdac_pin_patch(struct hdaa_widget *w)
|
||||
@ -466,7 +465,7 @@ hdaa_patch(struct hdaa_devinfo *devinfo)
|
||||
/*
|
||||
* Quirks
|
||||
*/
|
||||
for (i = 0; i < HDAC_QUIRKS_LEN; i++) {
|
||||
for (i = 0; i < nitems(hdac_quirks); i++) {
|
||||
if (!(HDA_DEV_MATCH(hdac_quirks[i].model, subid) &&
|
||||
HDA_DEV_MATCH(hdac_quirks[i].id, id) &&
|
||||
HDA_DEV_MATCH(hdac_quirks[i].subsystemid, subsystemid)))
|
||||
|
Loading…
Reference in New Issue
Block a user