Received: by 10.223.164.202 with SMTP id h10csp2857858wrb; Tue, 28 Nov 2017 02:27:56 -0800 (PST) X-Google-Smtp-Source: AGs4zMZF1WlF2Rl1JHLTRc4GtXnUid7CWliS9TE6OaOoLyzGccoE/mZC7Yjh9qPXcsAvLIh3NTXU X-Received: by 10.84.252.4 with SMTP id x4mr40070971pll.99.1511864876567; Tue, 28 Nov 2017 02:27:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511864876; cv=none; d=google.com; s=arc-20160816; b=ud3Xo8Yc4sUaJhsXblTIMkxH/4mimjWj2P60gHBIInejqdcjJ/dbAvR6IFtf51xEaM bJ97XusRw633GLnTg43kNOMEqgZ4sMtYuiurtESClOa/K7QJyS/XfyV5PK05yzxYEEdP g7GEqeJC1U90bE8V6w8vxpBvysW3iUB56ea7R7nCGpF5wytmZI7qmE408YI59EYxjhHG FPBuw6uZO/O8i7MVimW9ITbYb+f4WrVfa2YR6FBhd3liLXtGcnYzSCKZWgKKm8ZbsJXg 8xQtn1gTOt9Rjqo2rpGR4CFCtILqaaum6F+fiElVjuy31Vq0iXnOzNcioJX1323N1rDm K/xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=g21DmWOM+QMZCCao7Kkjs3X0HHy8PdSBiqYHpDZc8dE=; b=LFCqaiMNIA8bfY97GDuOvLHGcNR5TqzcMM8SiZti0uO6BUey+EQ4LWPeE+dlXhGr0l qOk47Cs8/n8JvDITpGWbaCWSVHuH6eE6tTcT/4DQCu6eo1X7Pw48dB8ZJIgvuDgyb45U dxXyYMbvWtV6LhTzSpXMUGWg2qYHjhfqZdxCnejQT40kj3Q7AVgs1JHAYV/1wJXuNkSX Uf9NlLsd9ebYCitA7LZaU8XJL1u2HpHFITahGfs3o2CJA8R20tR9n8VmBu9VznGSu2QH Y/IbPKibk4rX9yPWAUzDmDtvKtq0tGPtoInRMktTuWYBimILadDVTaN8z2hxgcDJp1fJ 2ISw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mYl9zsil; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1si919100plk.775.2017.11.28.02.27.44; Tue, 28 Nov 2017 02:27:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mYl9zsil; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753193AbdK1KZc (ORCPT + 79 others); Tue, 28 Nov 2017 05:25:32 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:33562 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752390AbdK1KZ3 (ORCPT ); Tue, 28 Nov 2017 05:25:29 -0500 Received: by mail-pl0-f65.google.com with SMTP id a12so10397858pll.0; Tue, 28 Nov 2017 02:25:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=g21DmWOM+QMZCCao7Kkjs3X0HHy8PdSBiqYHpDZc8dE=; b=mYl9zsilq+Krda8JwFRgasrk7QpeVp0RhoqQ0vPsICH4sUtwWkvJpoma9x7SnBiEUa 7xr6Rw3MwH+je64425t0hY+itAfGS7YsNNGFTF8wXoww5VLhrpHpSXcxOHl2Le1rGbqy E0Hw2TeMQqi4hIP0UvXnrr/PFDkON/eVbeU2xuIJwDY+8HLZLQrDDOaqv+2fNtwZeWXv hIr2wcFLLEGBykGxP/KUqNfWMeq9meytuptoiPJY+xlAfokIGLNA8nrGKGzf3qiuOKfw gVyTneMr9/eZ5zkeyEqkO4etdSd1+2gFLZY1VlmN/JUQvdlt/vAAhClhOKLP5Uf2JEpJ yV7w== 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=g21DmWOM+QMZCCao7Kkjs3X0HHy8PdSBiqYHpDZc8dE=; b=QAxSKu9yfbBdKJINgRAF6kURNG0jfniNSTzmEuIBCVN/AoAKbZ6gdTRzUPZCcZa/Ob ImFeSmaQnbGJP4E+pjmxTtL/gfQ28WWbGHJkyrJGSWtSlzsMtm8fEEZob7z/Xw8Djdwd QsD81G3LwWDm/EAcdhCk1OU9eXEjkLSBu/FVGddpZP46kkbJ7hY+iQ33HpkU8SmOxcSM ywZMFr2FzcorQG3zfBq2ylKGOZW8C5DmT9GD2juaDAG7s7miLomdyAMm87rR4/OHWcjw T+3Y4lGoigk3U/gV00jEZWxlP/p/bFlVSbWBG63d2GvWu7N0xNaGW3RGZ47mPMAlHlfl bSdw== X-Gm-Message-State: AJaThX7/dYbBoOnMF/m1EnT+DgTHBwR3IW9N4LlWMmfNJYglAU5+T0aU imPE344lTutGXGJwOi2mSLk= X-Received: by 10.84.140.131 with SMTP id 3mr30317210plt.394.1511864728803; Tue, 28 Nov 2017 02:25:28 -0800 (PST) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id h81sm59415193pfh.119.2017.11.28.02.25.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Nov 2017 02:25:28 -0800 (PST) From: Arvind Yadav To: hdegoede@redhat.com, wsa@the-dreams.de Cc: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org Subject: [PATCH] i2c-cht-wc: constify platform_device_id Date: Tue, 28 Nov 2017 15:55:07 +0530 Message-Id: X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/i2c/busses/i2c-cht-wc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-cht-wc.c b/drivers/i2c/busses/i2c-cht-wc.c index 190bbbc..db56759 100644 --- a/drivers/i2c/busses/i2c-cht-wc.c +++ b/drivers/i2c/busses/i2c-cht-wc.c @@ -342,7 +342,7 @@ static int cht_wc_i2c_adap_i2c_remove(struct platform_device *pdev) return 0; } -static struct platform_device_id cht_wc_i2c_adap_id_table[] = { +static const struct platform_device_id cht_wc_i2c_adap_id_table[] = { { .name = "cht_wcove_ext_chgr" }, {}, }; -- 1.9.1 From 1586120896946610132@xxx Thu Dec 07 10:32:42 +0000 2017 X-GM-THRID: 1586120896946610132 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread