From patchwork Mon Nov 16 19:52:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 7630451 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EEAF7BF90C for ; Mon, 16 Nov 2015 19:54:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3B63D204CF for ; Mon, 16 Nov 2015 19:54:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5B6DD205C4 for ; Mon, 16 Nov 2015 19:54:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752813AbbKPTyI (ORCPT ); Mon, 16 Nov 2015 14:54:08 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:34528 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752143AbbKPTyG (ORCPT ); Mon, 16 Nov 2015 14:54:06 -0500 Received: by wmvv187 with SMTP id v187so194593079wmv.1 for ; Mon, 16 Nov 2015 11:54:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=A5UHIiXFTmrlyVG0BOQGrBnAGx4AHyaIOAAGpgqerS0=; b=wqyr9BSy8ruCfDLndiD/RHpeCmiOuNE977cEgjTmYiCIfUNoVz+j44UzcnKjXsFazZ J4fVxVe91N627Mbf0yjBO1gFyI+JXau3w722DSaqZCp6lmrfenhJCnwmuitlyRPoNjgu ualoyW228yyrgc8G6P98h+zuvFSU4fEKS8IH5aDnmdurPwi0EkAqMyW104SdhQ/w41X7 Om72xudLq4eQUVy7V+4IbQ9Eq1ob43guEx+F0tOGgpcDs3dxvIXze864o0hvb14ZQBCL B0u3QvF/vedkMMURa0RFgWnuBZ1FJFqgpCQxBjCR2wRIE82Wkx6fB4P6eUGtWRiqtZmr G9qg== X-Received: by 10.194.82.99 with SMTP id h3mr34595670wjy.41.1447703645434; Mon, 16 Nov 2015 11:54:05 -0800 (PST) Received: from ?IPv6:2003:62:5f55:ba00:2914:ea82:f3d7:fe39? (p200300625F55BA002914EA82F3D7FE39.dip0.t-ipconnect.de. [2003:62:5f55:ba00:2914:ea82:f3d7:fe39]) by smtp.googlemail.com with ESMTPSA id l1sm20162875wmg.21.2015.11.16.11.54.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2015 11:54:05 -0800 (PST) From: Heiner Kallweit Subject: [PATCH 3/8] media: rc: constify struct proto_names To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, =?UTF-8?Q?David_H=c3=a4rdeman?= Message-ID: <564A33F1.2000504@gmail.com> Date: Mon, 16 Nov 2015 20:52:17 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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 Declare struct proto_names and its member name as const. Signed-off-by: Heiner Kallweit --- drivers/media/rc/rc-main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index cede8bc..f2d5c50 100644 --- a/drivers/media/rc/rc-main.c +++ b/drivers/media/rc/rc-main.c @@ -777,9 +777,9 @@ static struct class rc_class = { * used by the sysfs protocols file. Note that the order * of the entries is relevant. */ -static struct { +static const struct { u64 type; - char *name; + const char *name; const char *module_name; } proto_names[] = { { RC_BIT_NONE, "none", NULL },