summaryrefslogtreecommitdiff
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2022-03-31 01:32:52 +0300
committerMarcel Holtmann <marcel@holtmann.org>2022-05-13 14:05:48 +0300
commitbf7380e224f98a29ff6290beb2ea026f0a044a8c (patch)
tree3d3f9513a96fd2fa0eeced860d6209df934c0f63 /drivers/bluetooth
parent31396dd53f32d5d82655d84ab31e193ace836688 (diff)
downloadlinux-bf7380e224f98a29ff6290beb2ea026f0a044a8c.tar.xz
Bluetooth: btintel: Constify static struct regmap_bus
The only usage of regmap_ibt is to (after the regmap_init() macro is expanded), pass its address to __regmap_init(), which takes a pointer to const struct regmap_bus as input. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/btintel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c
index 06514ed66022..818681c89db8 100644
--- a/drivers/bluetooth/btintel.c
+++ b/drivers/bluetooth/btintel.c
@@ -794,7 +794,7 @@ static void regmap_ibt_free_context(void *context)
kfree(context);
}
-static struct regmap_bus regmap_ibt = {
+static const struct regmap_bus regmap_ibt = {
.read = regmap_ibt_read,
.write = regmap_ibt_write,
.gather_write = regmap_ibt_gather_write,