Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2230944pxb; Wed, 30 Mar 2022 20:05:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2ZGuJ6FnF0u77EIuXbPufFbE18cQYbujDtjtdHlTDZiy4gB9wl90soohZtkrHo6Q0ZQgf X-Received: by 2002:a17:90b:4d01:b0:1c9:ec79:1b35 with SMTP id mw1-20020a17090b4d0100b001c9ec791b35mr3412927pjb.77.1648695925492; Wed, 30 Mar 2022 20:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648695925; cv=none; d=google.com; s=arc-20160816; b=cE8T0ezshEw/vjCv7WGiGBLjeC6p+YlbVhr0yTARKchp0b/OxYJ5IBxejlNrnk8QIu MLkcVCj0r9Lu2IFSQeN//wvGmlPW6iWuzTvHh2Wo+nlRMigA2sWLy23HLq6IdW8rTyTX Jzok9YnNWI+pzHjT6HGN11zCKXUlCk7ztp+wWRY86g2BhdBRG8gzxYP+uKIXnj/om2dR uxa/9tlxjqG+nKEW/R/m5F7gHDF0vNdFnyJJQPf4J5eG7fegEoDehAWOFwJRwqlZgEpG 2xPRdt8wbDDajSzXdX/Gxb6AlTwiJ1OJXc7a479feDh7WdPSlWN7F66X66amLBrOmIda MKqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wpHPCOr0X38MV4jr7efb3ekeDGpgOhqIRFxCBa8bq9Q=; b=s1U6RgQNEiPhme0AMEfVM7WPYd75RU3gcgmrAKMG26tGvHmtoPGNDjYqx3vdsLdDj9 26OPj1ihk9G+tWbQqKlHSITb3EKOlNSRm0Y+2jeUHxQFS/PfzNipz6NeOKZqSXKjiDLn I4//uFCQLfD8js77S2TvF2WaSfTqWvXsM2CuJIr427l17xvY5vx9SxIDXChQdmU68Nho h/ZjFoEmj1s+mgT4HAjzfs8QobPOWqIdzJl+D95aGvB8ujs805gyaXPYqu3u8YK9IPo7 tyPTOlDs6yN4bCULYtArtfaWyv+x0ctmU+ZFjqKM24d/WsE5Rv1T2jnSgLeB++wuIz5L amzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kpUZJ2H8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i2-20020a170902eb4200b00153b2d16601si14453023pli.521.2022.03.30.20.05.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 20:05:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kpUZJ2H8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EE48E90CD0; Wed, 30 Mar 2022 19:44:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351660AbiC3Wew (ORCPT + 99 others); Wed, 30 Mar 2022 18:34:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351654AbiC3Weu (ORCPT ); Wed, 30 Mar 2022 18:34:50 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64BD55BE54; Wed, 30 Mar 2022 15:33:04 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id bq24so22351089lfb.5; Wed, 30 Mar 2022 15:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wpHPCOr0X38MV4jr7efb3ekeDGpgOhqIRFxCBa8bq9Q=; b=kpUZJ2H8MZUEANPHklnuQalkHQFerq8JbC/ucgljPLlY895ErPh+C18WbHdYqVwu1A TpWovw8/KGKRvjQWjm3LcxgzVX8UOFD1MydEwlHBC+mignQ0EILS8vmgwY48WYs0+/vG Sr64qtlr4TVHZ1VjFXn6Lo/k61cB5hAKln84e7mCwWxBhhXnamlxK6gzkok/GRytHS9Q Exun6Ejp0wnv+RJQPKsLOOXoKz1aDn8GqXQwN6PMVxsg6VbI0fL9nVVEnm46/4m0qEVk cUjdVqxUTAThOQ7DJ08Ig/JCSm7FJ7fZXXlL0WSNQK4m/XGnVvwiWWgnM66C+8hgy1IT NdVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wpHPCOr0X38MV4jr7efb3ekeDGpgOhqIRFxCBa8bq9Q=; b=uNx2DPRju08eA7zBVvaoEXyQ1QNIq7VBgh6xmgA8vw8zPomAY/UyvIZ9FUIzd1zYWw 3oaQc8y5XWCxmfW/yCW0a0vDoTms4o2be4Ob15+gkblyKeQ36Tk7HaQwL55Do2enjUk0 OlkOYVDgOt1YYMmTR5v2udeiJLWVX8wr1CZ3JcgVuUorgbGCdLxx2/Gy0/WFwS3Sb3Tr a+HkXF1zh/u8IWkVD3igi15ncG02gdCzM4SdWPljz852tIjIZ9xPvXo1CSfNCbDX7WeL wwaQeEDcAT8hdxUrgXsCjBHdFrkgYdf7iqx0JqjLmJTJ6b4kOokmGVAKiP2e3ykHJDmG HJ3A== X-Gm-Message-State: AOAM5337fKV8tTk3642BLtFa41JoRxhSaYpFirgnvrrWfnbCU7RXUiv/ h604R7UXQ5pR7uFogW/JnG8mVkfbrio= X-Received: by 2002:a05:6512:22d3:b0:44a:518d:c23b with SMTP id g19-20020a05651222d300b0044a518dc23bmr8524968lfu.21.1648679582528; Wed, 30 Mar 2022 15:33:02 -0700 (PDT) Received: from localhost.localdomain (h-82-196-111-188.NA.cust.bahnhof.se. [82.196.111.188]) by smtp.gmail.com with ESMTPSA id bq5-20020a056512150500b004433c791651sm2471000lfb.69.2022.03.30.15.33.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 15:33:02 -0700 (PDT) From: Rikard Falkeborn To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Rikard Falkeborn Subject: [PATCH] Bluetooth: btintel: Constify static struct regmap_bus Date: Thu, 31 Mar 2022 00:32:52 +0200 Message-Id: <20220330223252.42136-1-rikard.falkeborn@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/bluetooth/btintel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.35.1