diff options
| author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-11-23 09:04:05 +0100 | 
|---|---|---|
| committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-11-23 09:04:05 +0100 | 
| commit | 92907cbbef8625bb3998d1eb385fc88f23c97a3f (patch) | |
| tree | 15626ff9287e37c3cb81c7286d6db5a7fd77c854 /scripts/mod/file2alias.c | |
| parent | 15fbfccfe92c62ae8d1ecc647c44157ed01ac02e (diff) | |
| parent | 1ec218373b8ebda821aec00bb156a9c94fad9cd4 (diff) | |
Merge tag 'v4.4-rc2' into drm-intel-next-queued
Linux 4.4-rc2
Backmerge to get at
commit 1b0e3a049efe471c399674fd954500ce97438d30
Author: Imre Deak <imre.deak@intel.com>
Date:   Thu Nov 5 23:04:11 2015 +0200
    drm/i915/skl: disable display side power well support for now
so that we can proplery re-eanble skl power wells in -next.
Conflicts are just adjacent lines changed, except for intel_fbdev.c
where we need to interleave the changs. Nothing nefarious.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'scripts/mod/file2alias.c')
| -rw-r--r-- | scripts/mod/file2alias.c | 29 | 
1 files changed, 25 insertions, 4 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 5f2088209132..5b96206e9aab 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c @@ -137,10 +137,12 @@ static inline void add_wildcard(char *str)  static inline void add_uuid(char *str, uuid_le uuid)  {  	int len = strlen(str); -	int i; -	for (i = 0; i < 16; i++) -		sprintf(str + len + (i << 1), "%02x", uuid.b[i]); +	sprintf(str + len, "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", +		uuid.b[3], uuid.b[2], uuid.b[1], uuid.b[0], +		uuid.b[5], uuid.b[4], uuid.b[7], uuid.b[6], +		uuid.b[8], uuid.b[9], uuid.b[10], uuid.b[11], +		uuid.b[12], uuid.b[13], uuid.b[14], uuid.b[15]);  }  /** @@ -1200,16 +1202,18 @@ static int do_cpu_entry(const char *filename, void *symval, char *alias)  }  ADD_TO_DEVTABLE("cpu", cpu_feature, do_cpu_entry); -/* Looks like: mei:S:uuid */ +/* Looks like: mei:S:uuid:N:* */  static int do_mei_entry(const char *filename, void *symval,  			char *alias)  {  	DEF_FIELD_ADDR(symval, mei_cl_device_id, name);  	DEF_FIELD_ADDR(symval, mei_cl_device_id, uuid); +	DEF_FIELD(symval, mei_cl_device_id, version);  	sprintf(alias, MEI_CL_MODULE_PREFIX);  	sprintf(alias + strlen(alias), "%s:",  (*name)[0]  ? *name : "*");  	add_uuid(alias, *uuid); +	ADD(alias, ":", version != MEI_CL_VERSION_ANY, version);  	strcat(alias, ":*"); @@ -1250,6 +1254,23 @@ static int do_ulpi_entry(const char *filename, void *symval,  }  ADD_TO_DEVTABLE("ulpi", ulpi_device_id, do_ulpi_entry); +/* Looks like: hdaudio:vNrNaN */ +static int do_hda_entry(const char *filename, void *symval, char *alias) +{ +	DEF_FIELD(symval, hda_device_id, vendor_id); +	DEF_FIELD(symval, hda_device_id, rev_id); +	DEF_FIELD(symval, hda_device_id, api_version); + +	strcpy(alias, "hdaudio:"); +	ADD(alias, "v", vendor_id != 0, vendor_id); +	ADD(alias, "r", rev_id != 0, rev_id); +	ADD(alias, "a", api_version != 0, api_version); + +	add_wildcard(alias); +	return 1; +} +ADD_TO_DEVTABLE("hdaudio", hda_device_id, do_hda_entry); +  /* Does namelen bytes of name exactly match the symbol? */  static bool sym_is(const char *name, unsigned namelen, const char *symbol)  {  | 
