From patchwork Sat Aug 19 19:26:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9910677 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E1B9B602C8 for ; Sat, 19 Aug 2017 19:26:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCA1E28BD5 for ; Sat, 19 Aug 2017 19:26:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C189828BDB; Sat, 19 Aug 2017 19:26:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34D4628BD5 for ; Sat, 19 Aug 2017 19:26:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751368AbdHST0o (ORCPT ); Sat, 19 Aug 2017 15:26:44 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:35522 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751267AbdHST0n (ORCPT ); Sat, 19 Aug 2017 15:26:43 -0400 Received: by mail-pg0-f68.google.com with SMTP id t80so12718643pgb.2; Sat, 19 Aug 2017 12:26:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=rGx5v8N3LiegtHE92CFahlAkf3VE/yflh917/2f9g8E=; b=U8H8Ynih2mBdt1pxSvp8Vz8RxF418ZfEBWKfk/fMKbqME93+jzvTJwVNAb9t2/aTvV SU2mRXyH0MR4AEAfiNNmFo/Rbi8PgNylmPFcTkC9yyLZ+LVF0BPNv8picXDzFbzCLOM+ NCM4V5VkonB7F6dqGzon2vFNTzh4TAFVGjXScYMxD76fZyWy9WTm724kxtTyke3wLvRb g3N+SKDMbVTK2jqilmfJsUqTyhQd8ZEtEBK9AwFpdAPm8KODvGbJLf3vflf4GQKuRvhB xtxzLB+JYxjFQsEuDEVKN7ykA3uZHSsTpEJZgy+DlqTMWjWYp7xyI74NQDTYDyF2u4zU 2ryQ== 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=rGx5v8N3LiegtHE92CFahlAkf3VE/yflh917/2f9g8E=; b=d0lGOTzchCa2jW7aJenWKf07hqszHqaklSlOfeLXsSXBmzIGwMRnOtPts9P5/hkiaJ /DliNRAmdljDbeuUhHkVGGORZxxD2MGROSTyax9Yer0tsLo0E4YbqrhfcJQJFzoYE+5+ zx316bAgOkXl0YdRji4y8vSjP4tBa5ua3McW+rOFShhfpvNZycUuYXPG6RNNMJUamDa7 +UNxYG7jIlZsYr3tzPbaZrYldPtLqGf3eJt+cecW1AVDXcOFSQTVjPtOGA7LTV2mhPku i2vyOqp9QTSbx/E9SAinAqMLp7R0ePh7WOjqREsM7hWBdakK2W1xxQHxAzmqtJqzftFC 3uqQ== X-Gm-Message-State: AHYfb5iVCFfCqc1lkAaVVMo0ovs1DQFzcFnJQYBjctWEklB+AdzHXTES hGHbL5nA0NUWUHLZdsY= X-Received: by 10.101.77.6 with SMTP id i6mr12158947pgt.181.1503170803226; Sat, 19 Aug 2017 12:26:43 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id 17sm17927575pfp.157.2017.08.19.12.26.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Aug 2017 12:26:42 -0700 (PDT) From: Arvind Yadav To: jdelvare@suse.com, linux@roeck-us.net Cc: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org Subject: [PATCH] hwmon: ftsteutates: constify i2c_device_id Date: Sun, 20 Aug 2017 00:56:34 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP i2c_device_id are not supposed to change at runtime. All functions working with i2c_device_id provided by work with const i2c_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/hwmon/ftsteutates.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/ftsteutates.c b/drivers/hwmon/ftsteutates.c index 0f0277e..317e45f 100644 --- a/drivers/hwmon/ftsteutates.c +++ b/drivers/hwmon/ftsteutates.c @@ -60,7 +60,7 @@ static const unsigned short normal_i2c[] = { 0x73, I2C_CLIENT_END }; -static struct i2c_device_id fts_id[] = { +static const struct i2c_device_id fts_id[] = { { "ftsteutates", 0 }, { } };