From patchwork Tue Jan 16 14:00:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov via B4 Relay X-Patchwork-Id: 13520856 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BFB21BDE4 for ; Tue, 16 Jan 2024 14:00:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OYfawNJg" Received: by smtp.kernel.org (Postfix) with ESMTPS id E77F7C4166B; Tue, 16 Jan 2024 14:00:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705413639; bh=OvbIhiPoQS5zM/o2nWQnkAR+ZmHVvUDGRnRbY42KlSk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=OYfawNJgCEU9eFqZC629+Fh2eJMtCB11hKseBso6LB6AGBrcctVONthKb74tLeXz/ k/tBw/cMDCAOi/Gb8CkbTVNtyYgUSl1t2ZvJhxESYaTk17RcNnFVtTKdF6o3VfBjZW pWDYnLwt3KNDPqloBH8pv3Tvr0ex04CuRqQn0HrBBIpc9H50/R8UWyIzOzJE9Y6RR+ jiltmVJ7JpJivLuHvsIdIsweFhcX9nAESr8r3XjVxd0pAj0uJssXmZ9R3GTCyszTSo LYsGIghP3WN73SWCUgIo9UpOJgClbNzt+FgWuRO4Jpt7EeaED7sYLRP+pSciU+o+yn TuQn+jEDayigw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8232C47DA9; Tue, 16 Jan 2024 14:00:39 +0000 (UTC) From: Emil Velikov via B4 Relay Date: Tue, 16 Jan 2024 14:00:39 +0000 Subject: [PATCH BlueZ 14/20] mesh: const annotate misc data Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240116-const-v1-14-17c87978f40b@gmail.com> References: <20240116-const-v1-0-17c87978f40b@gmail.com> In-Reply-To: <20240116-const-v1-0-17c87978f40b@gmail.com> To: linux-bluetooth@vger.kernel.org Cc: Emil Velikov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1705413636; l=736; i=emil.l.velikov@gmail.com; s=20230301; h=from:subject:message-id; bh=6tOC6zO5jyNErTKsxfQ8UiUAUopjHEVML0310cw+Lzg=; b=JSjJXFSnWAE4MeQNJ4JzFZDEPQDGDb7ZoYs/5pg4Leodg964HThBOPwsTxYDcraVqr6GQ41w6 GLijVFiDJeVD/eu0cYAe+C+K/ZZsOgzfY5PHdKxAvdNX/6qAuimDG0n X-Developer-Key: i=emil.l.velikov@gmail.com; a=ed25519; pk=qeUTVTNyI3rcR2CfNNWsloTihgzmtbZo98GdxwZKCkY= X-Endpoint-Received: by B4 Relay for emil.l.velikov@gmail.com/20230301 with auth_id=35 X-Original-From: Emil Velikov Reply-To: From: Emil Velikov --- mesh/agent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesh/agent.c b/mesh/agent.c index 5058d0d8d..2f9697a33 100644 --- a/mesh/agent.c +++ b/mesh/agent.c @@ -61,7 +61,7 @@ struct oob_info { uint16_t mask; }; -static struct prov_action cap_table[] = { +static const struct prov_action cap_table[] = { {"blink", 0x0001, 0x0000, 1}, {"beep", 0x0002, 0x0000, 1}, {"vibrate", 0x0004, 0x0000, 1}, @@ -73,7 +73,7 @@ static struct prov_action cap_table[] = { {"in-alpha", 0x0000, 0x0008, 8} }; -static struct oob_info oob_table[] = { +static const struct oob_info oob_table[] = { {"other", 0x0001}, {"uri", 0x0002}, {"machine-code-2d", 0x0004},