From nobody Wed Apr 8 07:43:21 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE3ACC25B08 for ; Tue, 23 Aug 2022 04:46:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239658AbiHWEqV (ORCPT ); Tue, 23 Aug 2022 00:46:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239292AbiHWEqR (ORCPT ); Tue, 23 Aug 2022 00:46:17 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9ECF52FEE for ; Mon, 22 Aug 2022 21:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661229976; x=1692765976; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IPnnb0fU/qVJlOwgD1izgy0CaO2aldoMjVq4ZHg4Azw=; b=aUifaUWa+1n45Omla3+aDpL51Q5KH0zpvNWZGhHWXoBkjwUE6lnSuF06 GGnqVHSAD4Si1Cq6r6RQ2xMDSkY/u2lB9fmxR0rrK9TlfNZULWwQadhg5 WtM1+yogXg99n9J5m4ViUGNsrhRZiEIs3U6li9yeihn6dYnVqNnCDSE5+ FL/mJyHc0oRvCO+zKolKFK57VqftiFBw7bW/qhQR9jdtkQxdArHT9Dvu/ bPduXDjeZ6C0I6CBy7y/AqZzAp/9ZYMoeJFo18ZuH7TXDBKnZsosrorFp H8vyQCYrFAEacbc+wWeJ75yzzx8eIPtH6mkPeB3YyqpOR0j3PqvmwMwwG w==; X-IronPort-AV: E=McAfee;i="6500,9779,10447"; a="291146781" X-IronPort-AV: E=Sophos;i="5.93,256,1654585200"; d="scan'208";a="291146781" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Aug 2022 21:46:16 -0700 X-IronPort-AV: E=Sophos;i="5.93,256,1654585200"; d="scan'208";a="669855093" Received: from bard-ubuntu.sh.intel.com ([10.239.185.57]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Aug 2022 21:46:15 -0700 From: Bard Liao To: alsa-devel@alsa-project.org, vkoul@kernel.org Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com Subject: [PATCH 1/3] soundwire: bus: rename sdw_ida as sdw_bus_ida Date: Tue, 23 Aug 2022 12:50:02 +0800 Message-Id: <20220823045004.2670658-2-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220823045004.2670658-1-yung-chuan.liao@linux.intel.com> References: <20220823045004.2670658-1-yung-chuan.liao@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Pierre-Louis Bossart 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 Reviewed-by: Ranjani Sridharan Reviewed-by: Rander Wang Signed-off-by: Bard Liao --- drivers/soundwire/bus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/soundwire/bus.c b/drivers/soundwire/bus.c index 8d4000664fa3..37638c20c804 100644 --- a/drivers/soundwire/bus.c +++ b/drivers/soundwire/bus.c @@ -11,11 +11,11 @@ #include "bus.h" #include "sysfs_local.h" =20 -static DEFINE_IDA(sdw_ida); +static DEFINE_IDA(sdw_bus_ida); =20 static int sdw_get_id(struct sdw_bus *bus) { - int rc =3D ida_alloc(&sdw_ida, GFP_KERNEL); + int rc =3D ida_alloc(&sdw_bus_ida, GFP_KERNEL); =20 if (rc < 0) return rc; @@ -179,7 +179,7 @@ void sdw_bus_master_delete(struct sdw_bus *bus) sdw_master_device_del(bus); =20 sdw_bus_debugfs_exit(bus); - ida_free(&sdw_ida, bus->id); + ida_free(&sdw_bus_ida, bus->id); } EXPORT_SYMBOL(sdw_bus_master_delete); =20 --=20 2.25.1