Skip to content

Commit

Permalink
soundwire: bus: rename sdw_ida as sdw_bus_ida
Browse files Browse the repository at this point in the history
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: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220823045004.2670658-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
Pierre-Louis Bossart authored and Vinod Koul committed Aug 30, 2022
1 parent 63198aa commit 88de0a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/soundwire/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
#include "bus.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)
{
int rc = ida_alloc(&sdw_ida, GFP_KERNEL);
int rc = ida_alloc(&sdw_bus_ida, GFP_KERNEL);

if (rc < 0)
return rc;
Expand Down Expand Up @@ -178,7 +178,7 @@ void sdw_bus_master_delete(struct sdw_bus *bus)
sdw_master_device_del(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);

Expand Down

0 comments on commit 88de0a8

Please sign in to comment.