diff options
author | Vinod Koul <vinod.koul@intel.com> | 2017-12-14 00:49:33 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-19 05:14:56 -0500 |
commit | 9251345dca24b62b14e4e53e6ee3387ae7d9c790 (patch) | |
tree | 6b56a307bbdc54110bcdd1f624cfe54c98ffa19b /scripts/mod/file2alias.c | |
parent | 8ecf4264efef64303d6b6c13d35f7c46024fb2ff (diff) |
soundwire: Add SoundWire bus type
This adds the base SoundWire bus type, bus and driver registration.
along with changes to module device table for new SoundWire
device type.
Signed-off-by: Sanyog Kale <sanyog.r.kale@intel.com>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Acked-By: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/mod/file2alias.c')
-rw-r--r-- | scripts/mod/file2alias.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 6ef6e63f96fd..b9beeaa4695b 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -1289,6 +1289,21 @@ static int do_hda_entry(const char *filename, void *symval, char *alias) | |||
1289 | } | 1289 | } |
1290 | ADD_TO_DEVTABLE("hdaudio", hda_device_id, do_hda_entry); | 1290 | ADD_TO_DEVTABLE("hdaudio", hda_device_id, do_hda_entry); |
1291 | 1291 | ||
1292 | /* Looks like: sdw:mNpN */ | ||
1293 | static int do_sdw_entry(const char *filename, void *symval, char *alias) | ||
1294 | { | ||
1295 | DEF_FIELD(symval, sdw_device_id, mfg_id); | ||
1296 | DEF_FIELD(symval, sdw_device_id, part_id); | ||
1297 | |||
1298 | strcpy(alias, "sdw:"); | ||
1299 | ADD(alias, "m", mfg_id != 0, mfg_id); | ||
1300 | ADD(alias, "p", part_id != 0, part_id); | ||
1301 | |||
1302 | add_wildcard(alias); | ||
1303 | return 1; | ||
1304 | } | ||
1305 | ADD_TO_DEVTABLE("sdw", sdw_device_id, do_sdw_entry); | ||
1306 | |||
1292 | /* Looks like: fsl-mc:vNdN */ | 1307 | /* Looks like: fsl-mc:vNdN */ |
1293 | static int do_fsl_mc_entry(const char *filename, void *symval, | 1308 | static int do_fsl_mc_entry(const char *filename, void *symval, |
1294 | char *alias) | 1309 | char *alias) |