From patchwork Sat Jun 13 12:22:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathias Krause X-Patchwork-Id: 6602541 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8A64E9F1C1 for ; Sat, 13 Jun 2015 12:22:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B8622206EA for ; Sat, 13 Jun 2015 12:22:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CA825206E8 for ; Sat, 13 Jun 2015 12:22:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751758AbbFMMW3 (ORCPT ); Sat, 13 Jun 2015 08:22:29 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:34623 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752526AbbFMMW2 (ORCPT ); Sat, 13 Jun 2015 08:22:28 -0400 Received: by wibut5 with SMTP id ut5so37639045wib.1 for ; Sat, 13 Jun 2015 05:22:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=e0MAT0kj9/IwdHgJfeINEXxPnfuLro85yAspJaNFFXI=; b=ar4r+dssMaUVin4M5gPkMmlqg5pd4gfKHxO18N5SNS6N1AjqBkHJb81cQYcudnzof9 ddWLj+maNu492jLLWxYSPgbS/SKOGvBRAZVZaQQ/hi2psGqoBDd5p/9f3zv6vluxyvJH DC4lEuJIToaOWCim6qr7mZMNFQUpAN6R02or1uo561VLVzO1hsFWL47JyzbHV6Xmwr0G 9UY+0JbTP420C/in5p1MPFuqLoyIsLJj5AKttJ7qCmDGBf48B2WaekSQLiqlLTaDQOUm jxzk+OdWKg+ANvR1CpJCsQllVLiUKece/XejFyda1pVsbv5tuPlCFZNZTSZaC3NePMlc j/Sw== X-Received: by 10.181.11.193 with SMTP id ek1mr15361509wid.15.1434198147683; Sat, 13 Jun 2015 05:22:27 -0700 (PDT) Received: from jig.fritz.box (p4FF287D8.dip0.t-ipconnect.de. [79.242.135.216]) by mx.google.com with ESMTPSA id em17sm7075302wid.11.2015.06.13.05.22.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Jun 2015 05:22:27 -0700 (PDT) From: Mathias Krause To: Mark Brown Cc: "Rafael J. Wysocki" , Len Brown , linux-spi@vger.kernel.org, Mathias Krause , Daniel Mack , Haojian Zhuang , Robert Jarzmik Subject: [PATCH] spi: spi-pxa2xx: Constify ACPI device ids Date: Sat, 13 Jun 2015 14:22:14 +0200 Message-Id: <1434198134-8278-1-git-send-email-minipli@googlemail.com> X-Mailer: git-send-email 1.7.10.4 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Constify the ACPI device ID array, it doesn't need to be writable at runtime. Signed-off-by: Mathias Krause Cc: Daniel Mack Cc: Haojian Zhuang Cc: Robert Jarzmik --- This patch should go on top of spi.git#topic/pxa drivers/spi/spi-pxa2xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index f97cd42fbc22..7293d6d875c5 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -1265,7 +1265,7 @@ static void cleanup(struct spi_device *spi) #ifdef CONFIG_ACPI -static struct acpi_device_id pxa2xx_spi_acpi_match[] = { +static const struct acpi_device_id pxa2xx_spi_acpi_match[] = { { "INT33C0", LPSS_LPT_SSP }, { "INT33C1", LPSS_LPT_SSP }, { "INT3430", LPSS_LPT_SSP },