From patchwork Tue Jul 7 01:01:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 6729361 Return-Path: X-Original-To: patchwork-linux-input@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 67A7A9F380 for ; Tue, 7 Jul 2015 01:01:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7FEDD20793 for ; Tue, 7 Jul 2015 01:01:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9A77A2070A for ; Tue, 7 Jul 2015 01:01:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753750AbbGGBBp (ORCPT ); Mon, 6 Jul 2015 21:01:45 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:36827 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753161AbbGGBBo (ORCPT ); Mon, 6 Jul 2015 21:01:44 -0400 Received: by pacgz10 with SMTP id gz10so29823798pac.3 for ; Mon, 06 Jul 2015 18:01:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=+1C4sVS5B1xzAsolQ9HAX12S8U89t+mOkvg+jmiwdrc=; b=FWFHjgPGDzA4zSrL4pcv44ZdbWHJ6DIKBkorTjU6U+wnJp3RU7pceRfKgIHS199o4K XGQgRINdCy23dOUHW8/uzEF5B/OUDRXqNqBMCaWO+1oMaCgmd8Ak5fx4VbTR0yPvAYUr 9Asog8uc6Tdm2NKrJ51KH/vNzH9u0ph+TFj4y3PrQqp3wkexbiPrVOsIe56Y2L59SHow doZ7FtwxDNdL54WtcX8rHTXRZ+k13nYxivrPxp7xpzIkITfdBMnwYMYzPDbcevEgXZFL /L3GgY9gc3ItccvroQNORGA/ixrgKy9o4JVtZK2zb7fZ8Vf6pevd6ifUKplJ6K/Ux/r+ cOgw== X-Gm-Message-State: ALoCoQlAYO+HRL0WpTm02s/uXX07bY0Mkzd2uql2X4cjY286wwLyqOUV+vPyRVuSha8fnUiJiZeV X-Received: by 10.70.126.33 with SMTP id mv1mr3166150pdb.64.1436230904078; Mon, 06 Jul 2015 18:01:44 -0700 (PDT) Received: from phoenix (118-167-23-195.dynamic.hinet.net. [118.167.23.195]) by mx.google.com with ESMTPSA id f4sm19692522pdc.95.2015.07.06.18.01.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jul 2015 18:01:42 -0700 (PDT) Message-ID: <1436230899.10336.2.camel@ingics.com> Subject: [PATCH] Input: drv260x/drv2665/drv2667 - Constify reg_default tables From: Axel Lin To: Dmitry Torokhov Cc: Dan Murphy , linux-input@vger.kernel.org Date: Tue, 07 Jul 2015 09:01:39 +0800 X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 These reg_default tables are not modified after initialized, so make them const. Signed-off-by: Axel Lin --- drivers/input/misc/drv260x.c | 2 +- drivers/input/misc/drv2665.c | 2 +- drivers/input/misc/drv2667.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/misc/drv260x.c b/drivers/input/misc/drv260x.c index e5d60ec..0e3af55 100644 --- a/drivers/input/misc/drv260x.c +++ b/drivers/input/misc/drv260x.c @@ -204,7 +204,7 @@ struct drv260x_data { int overdrive_voltage; }; -static struct reg_default drv260x_reg_defs[] = { +static const struct reg_default drv260x_reg_defs[] = { { DRV260X_STATUS, 0xe0 }, { DRV260X_MODE, 0x40 }, { DRV260X_RT_PB_IN, 0x00 }, diff --git a/drivers/input/misc/drv2665.c b/drivers/input/misc/drv2665.c index 0afaa33..e9501fd 100644 --- a/drivers/input/misc/drv2665.c +++ b/drivers/input/misc/drv2665.c @@ -74,7 +74,7 @@ static const u8 drv2665_sine_wave_form[] = { 0x9b, 0x9f, 0xa5, 0xad, 0xb8, 0xc4, 0xd2, 0xe0, 0xf0, 0x00, }; -static struct reg_default drv2665_reg_defs[] = { +static const struct reg_default drv2665_reg_defs[] = { { DRV2665_STATUS, 0x02 }, { DRV2665_CTRL_1, 0x28 }, { DRV2665_CTRL_2, 0x40 }, diff --git a/drivers/input/misc/drv2667.c b/drivers/input/misc/drv2667.c index fc0fddf..a231342 100644 --- a/drivers/input/misc/drv2667.c +++ b/drivers/input/misc/drv2667.c @@ -116,7 +116,7 @@ struct drv2667_data { u32 frequency; }; -static struct reg_default drv2667_reg_defs[] = { +static const struct reg_default drv2667_reg_defs[] = { { DRV2667_STATUS, 0x02 }, { DRV2667_CTRL_1, 0x28 }, { DRV2667_CTRL_2, 0x40 },