From patchwork Fri May 1 15:43:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 29450 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1YoD6o-0005iK-7P; Fri, 01 May 2015 17:44:10 +0200 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.76/mailfrontend-6) with esmtp id 1YoD6l-0003eh-67; Fri, 01 May 2015 17:44:10 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753867AbbEAPnf (ORCPT + 1 other); Fri, 1 May 2015 11:43:35 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:33614 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753543AbbEAPnf (ORCPT ); Fri, 1 May 2015 11:43:35 -0400 Received: by pacwv17 with SMTP id wv17so94035890pac.0; Fri, 01 May 2015 08:43:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=LhemP/wS7633N/+IMaGF2cItmCivpX5jhZ5ZQovBnfk=; b=z2QGXlq1pBSHjazGl+cizpLwzgjxqK6AKBW6MPuc8adxK5fBGx6XY78vntpqXh7N3w XNKQzovECODhix1zZUdLXFupq5mfbwwKnl+MsBB6AbUYr5e+qSiI4Q8KAnUVQg/fYO4C PFHQtH22THflzt9eg39+buJoZzQ712m9CxEDZT/mP+a12nT+3riF3z94gq2T1lrMcWBU K0XkySN3XF++rEmyMu144cUkASWJOCd5d7kA6PxUpnuZ+SU5av6fWsc/8WILRVLyLQuD 4GCttMGwwbDQMHfEALYTSDR99QpQfByq/xD0g+aoCa4pYBfo38zsj7xQDzQInd2vBwFj tXrQ== X-Received: by 10.66.102.5 with SMTP id fk5mr18683473pab.43.1430495014748; Fri, 01 May 2015 08:43:34 -0700 (PDT) Received: from localhost.localdomain ([125.130.175.98]) by mx.google.com with ESMTPSA id tk9sm5192212pbc.35.2015.05.01.08.43.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 May 2015 08:43:34 -0700 (PDT) From: Krzysztof Kozlowski To: Laurent Pinchart , Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] staging: media: omap4iss: Constify platform_device_id Date: Sat, 2 May 2015 00:43:07 +0900 Message-Id: <1430494987-31013-1-git-send-email-k.kozlowski.k@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2015.5.1.153318 X-PMX-Spam: Gauge=IIIIIIIII, Probability=9%, Report=' FORGED_FROM_GMAIL 0.1, MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, BODY_SIZE_900_999 0, DKIM_SIGNATURE 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __FRAUD_BODY_WEBMAIL 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MULTIPLE_RCPTS_TO_X5 0, __PHISH_SPEAR_STRUCTURE_1 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __URI_NO_WWW 0, __URI_NS , __YOUTUBE_RCVD 0' The platform_device_id is not modified by the driver and core uses it as const. Signed-off-by: Krzysztof Kozlowski Acked-by: Laurent Pinchart --- drivers/staging/media/omap4iss/iss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/omap4iss/iss.c b/drivers/staging/media/omap4iss/iss.c index e0ad5e520e2d..68867f286afd 100644 --- a/drivers/staging/media/omap4iss/iss.c +++ b/drivers/staging/media/omap4iss/iss.c @@ -1478,7 +1478,7 @@ static int iss_remove(struct platform_device *pdev) return 0; } -static struct platform_device_id omap4iss_id_table[] = { +static const struct platform_device_id omap4iss_id_table[] = { { "omap4iss", 0 }, { }, };