diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2020-05-18 19:43:18 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-05-19 09:14:34 +0200 |
commit | 5cab3ff2489ede5abffa6ad730708e087dc45a4d (patch) | |
tree | 8ab535adc4739ac4bb3bc2dec99e0335d1df6773 /Documentation/driver-api/soundwire | |
parent | soundwire: intel: (cosmetic) remove multiple superfluous "else" statements (diff) | |
download | linux-5cab3ff2489ede5abffa6ad730708e087dc45a4d.tar.xz linux-5cab3ff2489ede5abffa6ad730708e087dc45a4d.zip |
soundwire: bus: rename sdw_bus_master_add/delete, add arguments
In preparation for future extensions, rename functions to use
sdw_bus_master prefix and add a parent and fwnode argument to
sdw_bus_master_add to help with device registration in follow-up
patches.
No functionality change, just renames and additional arguments.
The Intel code is currently unused, the two additional arguments are
only needed for compilation.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Acked-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20200518174322.31561-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'Documentation/driver-api/soundwire')
-rw-r--r-- | Documentation/driver-api/soundwire/summary.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/driver-api/soundwire/summary.rst b/Documentation/driver-api/soundwire/summary.rst index 8193125a2bfb..01dcb954f6d7 100644 --- a/Documentation/driver-api/soundwire/summary.rst +++ b/Documentation/driver-api/soundwire/summary.rst @@ -101,10 +101,11 @@ Following is the Bus API to register the SoundWire Bus: .. code-block:: c - int sdw_add_bus_master(struct sdw_bus *bus) + int sdw_bus_master_add(struct sdw_bus *bus, + struct device *parent, + struct fwnode_handle) { - if (!bus->dev) - return -ENODEV; + sdw_master_device_add(bus, parent, fwnode); mutex_init(&bus->lock); INIT_LIST_HEAD(&bus->slaves); |