Received: by 10.223.164.202 with SMTP id h10csp3161271wrb; Sat, 25 Nov 2017 03:18:54 -0800 (PST) X-Google-Smtp-Source: AGs4zMa2pLsmaiHdKLW9KCZ0R4tSPL6icCkwnt9Z81WtcoC/DbZyAALiT/JGX+RlBAHLy2dQeF3M X-Received: by 10.98.212.79 with SMTP id u15mr3265044pfl.185.1511608734236; Sat, 25 Nov 2017 03:18:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511608734; cv=none; d=google.com; s=arc-20160816; b=PE4OoNzNa/5l5hYMTR5k7WOUpH5hX7zAP7+guzXM83Lyrg3R53zdHpIIi/Zdvg7t/r Is9O9Z4K4VRzB1XRpyl5q5RNJgas65KzZy3P1e87qp/R6JEOTOCP3Vn+PBBYML8uNREM ABnA5RGItI2BcM0i0MOt7GFerZq83ONeIB29upyC+GptNJlIc/eZKzffqfEPQQGbluEe SQ5NlfXdbaYTqlP2utxtgHuZh34HziBjTEvRveqLhJzdTRmB1NTEYyi9JWFT6A7t3U8T LaPGMs10GwTtq2vP35brPYOhs5+6XMFcKG1g/luVue9k4UvNZwOTJEYTahqM3Sl5Ft0s lQZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=qZ5jjV2fOVD445zkrKCSnozpZw0J5qJsk1FF6bhEavc=; b=mWypKYsM/E1dO0sjodX7zsSEhFTbQw02hDcinSI38BepWH1omaoXO3RbMhiEkiI7QJ Q56mRaJNRD0xp2JeKkFHFWGli/Ix3+mdJJWiCUvrB/QXfP5hmhMpzJKKr97junakrRIq l06kcekTmxzQf/HJRZ1m7Drz/syUZlF6v4dbwAql818Vd8lNrjgxqBLGk8HDtnjRAyMz 9sn/lbYR5+Nz1gBqxumLm5t7BpjJbfgTaBUnTdq11zkYRj9O2X0dEoHWvdNDQmp94Tt6 GR709BOEy5c+JWd3QZAIXp0eflKfgxJsRFur2U7DyYsUBsL2z+WHT6C4enwofKx1UT3Z XseQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=haZ0EEm+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u23si5869195pgo.594.2017.11.25.03.18.42; Sat, 25 Nov 2017 03:18:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=haZ0EEm+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751490AbdKYLRt (ORCPT + 79 others); Sat, 25 Nov 2017 06:17:49 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:42873 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751026AbdKYLRq (ORCPT ); Sat, 25 Nov 2017 06:17:46 -0500 Received: by mail-pl0-f68.google.com with SMTP id z3so5762414plh.9; Sat, 25 Nov 2017 03:17:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=qZ5jjV2fOVD445zkrKCSnozpZw0J5qJsk1FF6bhEavc=; b=haZ0EEm+pgDPUwBgauoJ2TzmUhuwQ0lK77AGImnu8EHtU4XRzBHnM0F1QjUwdjZ5n3 5/gQQgH1s05YeuE6FcS36s8GXifXX0CyVm5sz3WpKJYyGNxYqHosX5vjxXCjsfSDWH+k p+e5mL73dPW5VgS5OrvoUKhoilejX2E+HUVtt4dvOiMP7nFnsVLEUUxdepzBtT8LA4A+ Jy/NT0OinEcdk0UgU9qts8oBzmOk/eGS+DSenbo6pGbgRPqHIfBt1X2t8y5VUwQWFOBW /jb/ZotCQplxpgvRommSDEeiNm7yUwpuUmQ4frCKpubbjGJfkAEnFUXOJ6ELItz+JQ4U e32w== 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; bh=qZ5jjV2fOVD445zkrKCSnozpZw0J5qJsk1FF6bhEavc=; b=NZKOtZTNHc/FVZLBklh3FICM/XhfTE7tkdqEk7AUT7uQqctgKNXpo0iS/pVAwqQ3zr sa5f19Z88ebG19XpjryW70qEqlWJQatbpve9R0BrQ9jpl2zAkrdoE2tBWjJvPzStuW/V giC0ynhDdZHdpsivFkePKELMg80gcP+RrZYwBKwJpxjcNIBTvkFxXTc+oW3viL/w2z0J tQbjMR+eTBFGJzeApqhNXR6JylhBoE3PWZhikvWp4ug8bfJa99W3LEYjAU10hVDLgtrk PgiFpLjyYtpO4jW5MREb2JO8VYSS5CwyekTSBZQkMmXXZB7PmTHlL16iLx/dK6+Q4AGu RX4g== X-Gm-Message-State: AJaThX7XORLPbe53+KqvDa7EP1H5YZO0NULXvBzl5a+Rb8vKEJtAOCe2 0ZmLR+aPNxM18+nRPacCcY0= X-Received: by 10.84.133.1 with SMTP id 1mr31996735plf.203.1511608666135; Sat, 25 Nov 2017 03:17:46 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id j14sm40304983pfj.93.2017.11.25.03.17.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 25 Nov 2017 03:17:45 -0800 (PST) From: Arvind Yadav To: b.zolnierkie@samsung.com, tj@kernel.org, sergei.shtylyov@cogentembedded.com Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org Subject: [PATCH] pata_pdc2027x : make pdc2027x_*_timing structures const Date: Sat, 25 Nov 2017 16:47:35 +0530 Message-Id: <568091f7b46ee8c9f15ae5cbfe0b76d3a8c47022.1511608541.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make these pdc2027x_*_timing structures const as it is never modified. Signed-off-by: Arvind Yadav --- drivers/ata/pata_pdc2027x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c index d1e8b63..141bf81 100644 --- a/drivers/ata/pata_pdc2027x.c +++ b/drivers/ata/pata_pdc2027x.c @@ -82,7 +82,7 @@ static int pdc2027x_set_mode(struct ata_link *link, struct ata_device **r_failed * is issued to the device. However, if the controller clock is 133MHz, * the following tables must be used. */ -static struct pdc2027x_pio_timing { +static const struct pdc2027x_pio_timing { u8 value0, value1, value2; } pdc2027x_pio_timing_tbl[] = { { 0xfb, 0x2b, 0xac }, /* PIO mode 0 */ @@ -92,7 +92,7 @@ static struct pdc2027x_pio_timing { { 0x23, 0x09, 0x25 }, /* PIO mode 4, IORDY on, Prefetch off */ }; -static struct pdc2027x_mdma_timing { +static const struct pdc2027x_mdma_timing { u8 value0, value1; } pdc2027x_mdma_timing_tbl[] = { { 0xdf, 0x5f }, /* MDMA mode 0 */ @@ -100,7 +100,7 @@ static struct pdc2027x_mdma_timing { { 0x69, 0x25 }, /* MDMA mode 2 */ }; -static struct pdc2027x_udma_timing { +static const struct pdc2027x_udma_timing { u8 value0, value1, value2; } pdc2027x_udma_timing_tbl[] = { { 0x4a, 0x0f, 0xd5 }, /* UDMA mode 0 */ -- 2.7.4 From 1585239560815107513@xxx Mon Nov 27 17:04:14 +0000 2017 X-GM-THRID: 1585239560815107513 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread