Commit 88de0a8f authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Vinod Koul

soundwire: bus: rename sdw_ida as sdw_bus_ida

To avoid confusions with follow-up patches using a IDA mechanism for
peripheral 'device number' allocation, rename sdw_ida as sdw_bus_ida.

Pure rename, no functionality change.
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: default avatarRander Wang <rander.wang@intel.com>
Signed-off-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220823045004.2670658-2-yung-chuan.liao@linux.intel.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 63198aaa
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
#include "bus.h" #include "bus.h"
#include "sysfs_local.h" #include "sysfs_local.h"
static DEFINE_IDA(sdw_ida); static DEFINE_IDA(sdw_bus_ida);
static int sdw_get_id(struct sdw_bus *bus) static int sdw_get_id(struct sdw_bus *bus)
{ {
int rc = ida_alloc(&sdw_ida, GFP_KERNEL); int rc = ida_alloc(&sdw_bus_ida, GFP_KERNEL);
if (rc < 0) if (rc < 0)
return rc; return rc;
...@@ -178,7 +178,7 @@ void sdw_bus_master_delete(struct sdw_bus *bus) ...@@ -178,7 +178,7 @@ void sdw_bus_master_delete(struct sdw_bus *bus)
sdw_master_device_del(bus); sdw_master_device_del(bus);
sdw_bus_debugfs_exit(bus); sdw_bus_debugfs_exit(bus);
ida_free(&sdw_ida, bus->id); ida_free(&sdw_bus_ida, bus->id);
} }
EXPORT_SYMBOL(sdw_bus_master_delete); EXPORT_SYMBOL(sdw_bus_master_delete);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment