Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751479AbeACFNt (ORCPT + 1 other); Wed, 3 Jan 2018 00:13:49 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:43075 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751140AbeACFNr (ORCPT ); Wed, 3 Jan 2018 00:13:47 -0500 X-Google-Smtp-Source: ACJfBotfgM0KnP0Fsoh6J5+fLAIZNKw3uFXZPazej0/vHIwQOUHMaQBDr65qCoj1x5YoLAaA0o90Og== From: Arvind Yadav To: tj@kernel.org Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org Subject: [PATCH] ata_piix: constify pci_bits Date: Wed, 3 Jan 2018 10:43:34 +0530 Message-Id: X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: pci_bits are not supposed to change at runtime. Functions pci_test_config_bits() working with const 'struct pci_bits'. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/ata/ata_piix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index b702c20..7ecb132 100644 --- a/drivers/ata/ata_piix.c +++ b/drivers/ata/ata_piix.c @@ -458,7 +458,7 @@ struct piix_host_priv { [ich8_2port_sata_byt] = &ich8_2port_map_db, }; -static struct pci_bits piix_enable_bits[] = { +static const struct pci_bits piix_enable_bits[] = { { 0x41U, 1U, 0x80UL, 0x80UL }, /* port 0 */ { 0x43U, 1U, 0x80UL, 0x80UL }, /* port 1 */ }; -- 1.9.1