From patchwork Mon Aug 21 17:03:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9913319 X-Patchwork-Delegate: sameo@linux.intel.com 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 5B2B0600C8 for ; Mon, 21 Aug 2017 17:05:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 462852879C for ; Mon, 21 Aug 2017 17:05:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A3C2287A1; Mon, 21 Aug 2017 17:05:07 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable 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 D0E612879C for ; Mon, 21 Aug 2017 17:05:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754294AbdHUREj (ORCPT ); Mon, 21 Aug 2017 13:04:39 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34082 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754274AbdHUREf (ORCPT ); Mon, 21 Aug 2017 13:04:35 -0400 Received: by mail-pg0-f65.google.com with SMTP id i12so9310869pgr.1; Mon, 21 Aug 2017 10:04:35 -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:in-reply-to:references; bh=ZafhRoKqbtmItyGe2tZCGb10QSb7o08+aixO6yQEuYw=; b=SUgQkfY8Bu1DBl5sLihtef0mNXRJvLfJA1hnCu8CoAtomhdBOSWoVvuWr6FgOfEp6T Bu+HmdJmsz3y9SjlQEcG0bK+kqwgy/tQnue3RRV7ZwNXvZCZO7rcfk9gbykGVvlrBhXT b1qCRjgTFGKhzXGY8PjimmrGmDjKL8f6rMfh92L3d2sIofIzOiiKwm7guEVV+K03qSjK 0kD0TCYpalweCZQQ3aFmi0FK2zf3qwlkxFMiYTtr7XnEpreUc12xVobcbvip67ggKmmI eCD3JqwshY1GM2HPTlYsYX4jrGpqqdgPq8te8XaGgl7sHaK0VkCxDHqGOuwaF1FIFuXE LsGQ== 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:in-reply-to :references; bh=ZafhRoKqbtmItyGe2tZCGb10QSb7o08+aixO6yQEuYw=; b=YCxk7jR7SEgQk8+HcOKZt5H3I2dAwP4/U6p2LZqO0x5YVxrHvrWjgAGNmM9cRgY2c7 GqQrgFX1xpbBZhavisNgzy5EII4ddbbWEXIssUS/QzrD41dzqleR60mf3iqKXmqfcGyJ XgBnMYSc3CGSxMdz8PVNEyZ/2PHQN5FtNhtqX1R/SSKQ3snlpGwAc+IHv+Ml2/VQ+pvi FzD7LeVArzO1eGlynqdfh2FZjqika55gKHW38DRyOlKT0JnBIWiqedzR4M3xEhHhoNFE oJC1+ivi6CmaAC54MVui1TXY4U1v8Mr7RTiXzC7gUO73r/rX3JBBX2Q9NhdEir72LY0u mcZw== X-Gm-Message-State: AHYfb5jRT2RFYvqlcIDKrLHXgowfAuBRPU8Al2UWifdccgt4xm37wSVY RV/R3I894Lmnqg== X-Received: by 10.84.168.131 with SMTP id f3mr20660678plb.350.1503335074895; Mon, 21 Aug 2017 10:04:34 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.84]) by smtp.gmail.com with ESMTPSA id q76sm27480464pfi.76.2017.08.21.10.04.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Aug 2017 10:04:34 -0700 (PDT) From: Arvind Yadav To: sameo@linux.intel.com, clement.perrochaud@effinnov.com, charles.gorand@effinnov.com, r.baldyga@samsung.com, k.opasiak@samsung.com, davem@davemloft.net Cc: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH 6/8] nfc: s3fwrn5: constify i2c_device_id Date: Mon, 21 Aug 2017 22:33:58 +0530 Message-Id: <1503335040-27101-7-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503335040-27101-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1503335040-27101-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@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/nfc/s3fwrn5/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/s3fwrn5/i2c.c b/drivers/nfc/s3fwrn5/i2c.c index 3f09d7f..4da409e 100644 --- a/drivers/nfc/s3fwrn5/i2c.c +++ b/drivers/nfc/s3fwrn5/i2c.c @@ -276,7 +276,7 @@ static int s3fwrn5_i2c_remove(struct i2c_client *client) return 0; } -static struct i2c_device_id s3fwrn5_i2c_id_table[] = { +static const struct i2c_device_id s3fwrn5_i2c_id_table[] = { {S3FWRN5_I2C_DRIVER_NAME, 0}, {} };