diff options
Diffstat (limited to 'scripts/mod/file2alias.c')
-rw-r--r-- | scripts/mod/file2alias.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 9bc2cfe0ee37..5b96206e9aab 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -1254,6 +1254,23 @@ static int do_ulpi_entry(const char *filename, void *symval, | |||
1254 | } | 1254 | } |
1255 | ADD_TO_DEVTABLE("ulpi", ulpi_device_id, do_ulpi_entry); | 1255 | ADD_TO_DEVTABLE("ulpi", ulpi_device_id, do_ulpi_entry); |
1256 | 1256 | ||
1257 | /* Looks like: hdaudio:vNrNaN */ | ||
1258 | static int do_hda_entry(const char *filename, void *symval, char *alias) | ||
1259 | { | ||
1260 | DEF_FIELD(symval, hda_device_id, vendor_id); | ||
1261 | DEF_FIELD(symval, hda_device_id, rev_id); | ||
1262 | DEF_FIELD(symval, hda_device_id, api_version); | ||
1263 | |||
1264 | strcpy(alias, "hdaudio:"); | ||
1265 | ADD(alias, "v", vendor_id != 0, vendor_id); | ||
1266 | ADD(alias, "r", rev_id != 0, rev_id); | ||
1267 | ADD(alias, "a", api_version != 0, api_version); | ||
1268 | |||
1269 | add_wildcard(alias); | ||
1270 | return 1; | ||
1271 | } | ||
1272 | ADD_TO_DEVTABLE("hdaudio", hda_device_id, do_hda_entry); | ||
1273 | |||
1257 | /* Does namelen bytes of name exactly match the symbol? */ | 1274 | /* Does namelen bytes of name exactly match the symbol? */ |
1258 | static bool sym_is(const char *name, unsigned namelen, const char *symbol) | 1275 | static bool sym_is(const char *name, unsigned namelen, const char *symbol) |
1259 | { | 1276 | { |