From patchwork Thu Dec 17 20:57:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1417969 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=jjXuK0bf; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Cxksp584Wz9sVY for ; Fri, 18 Dec 2020 08:00:30 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3924482BF2; Thu, 17 Dec 2020 21:58:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="jjXuK0bf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CDC00827C0; Thu, 17 Dec 2020 21:58:17 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 791A1827C5 for ; Thu, 17 Dec 2020 21:58:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd2a.google.com with SMTP id y5so28875701iow.5 for ; Thu, 17 Dec 2020 12:58:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xqhGCM3A/6o6V1yzFOJALyKU2b+/4FMesF7uS86GfmE=; b=jjXuK0bfw86W/xOfmKpZc+F7G4lZoYkmPMaz72wStAMMZ1fecX8QJQ/HVPYiHnSkRO 3LVS3Extiyeyy1uDKHQUFBpMiPoix9Fm/JXcBNyQQhpFNaJ1LBeefaduk4UwcjwrWaTd wgnlDJwPs8K6Aeuz/tUq2AXygWCiibHUIli6I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xqhGCM3A/6o6V1yzFOJALyKU2b+/4FMesF7uS86GfmE=; b=R1o5nWi+bC6/UtU+pSqDhHPDnN+rb9L7zZ2c/sAVHvQN2Q8W85Bj1KHmLFhqYTl7Pi vRF7rSL6X9JdYUtHLkr1obeNnW1ZL9ehTh2k1a8IhM6qvGpVInMSDTqvgL+0OVW7NicF 2j2fBWO/9cAdMhzpb+Vn24hI7kDzkGdsqn1HBRy8Uo2f//zPnrrKOC9SVeZcpdAZC47I 4Cbam1tlvsT+PPttuH0s8Bpj2AgWgw1EOXpzjBepNsq8u8qwBfQq/Dwg2JuBDbV0lY3y FVZ+bu7Qqqq16/PgXp1WhU8QLrrL/ZYmYQhR+NVUlSTBZVxwz5iUAwKWuRBczIJh5VGM vLvQ== X-Gm-Message-State: AOAM530vb+RXuP8NDXmApb7qf8rJF21s6xFh5CVxSBzKd7mrqLFXLM60 oq54kpVjS9qqE/daWHimxzQSGVVtSPJEOQdk X-Google-Smtp-Source: ABdhPJw6mmcmLMwVCvUbApE+mUx3uj6NdfpMqmQJ+ukE+lbRsTLWq6uNhmHs7bH256VY38k8kVO7Ag== X-Received: by 2002:a02:ccca:: with SMTP id k10mr790403jaq.100.1608238691290; Thu, 17 Dec 2020 12:58:11 -0800 (PST) Received: from localhost.localdomain (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id r11sm3928627ilg.39.2020.12.17.12.58.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Dec 2020 12:58:10 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Andy Shevchenko , Bin Meng , Wolfgang Wallner Subject: [PATCH 13/20] x86: apl: Use const for driver operations Date: Thu, 17 Dec 2020 13:57:27 -0700 Message-Id: <20201217205734.631098-6-sjg@chromium.org> X-Mailer: git-send-email 2.29.2.684.gfbc64c5ab5-goog In-Reply-To: <20201217205734.631098-1-sjg@chromium.org> References: <20201217205734.631098-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Update these declarations to const to ensure that the data ends up in the rodata section. Signed-off-by: Simon Glass --- arch/x86/cpu/apollolake/pmc.c | 2 +- arch/x86/cpu/intel_common/p2sb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/cpu/apollolake/pmc.c b/arch/x86/cpu/apollolake/pmc.c index 290b2cb3e71..c40065ab8cf 100644 --- a/arch/x86/cpu/apollolake/pmc.c +++ b/arch/x86/cpu/apollolake/pmc.c @@ -205,7 +205,7 @@ static int apl_pmc_probe(struct udevice *dev) return 0; } -static struct acpi_pmc_ops apl_pmc_ops = { +static const struct acpi_pmc_ops apl_pmc_ops = { .init = apl_pmc_fill_power_state, .prev_sleep_state = apl_prev_sleep_state, .disable_tco = apl_disable_tco, diff --git a/arch/x86/cpu/intel_common/p2sb.c b/arch/x86/cpu/intel_common/p2sb.c index e6edab0b056..3765eeeab0d 100644 --- a/arch/x86/cpu/intel_common/p2sb.c +++ b/arch/x86/cpu/intel_common/p2sb.c @@ -180,7 +180,7 @@ static int p2sb_child_post_bind(struct udevice *dev) return 0; } -struct p2sb_ops p2sb_ops = { +static const struct p2sb_ops p2sb_ops = { .set_hide = intel_p2sb_set_hide, };