Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751861AbdH2Iul (ORCPT ); Tue, 29 Aug 2017 04:50:41 -0400 Received: from mail-eopbgr20100.outbound.protection.outlook.com ([40.107.2.100]:22544 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751837AbdH2Iud (ORCPT ); Tue, 29 Aug 2017 04:50:33 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; From: Peter Rosin To: gregkh@linuxfoundation.org Cc: Bhumika Goyal , julia.lawall@lip6.fr, bp@alien8.de, linux-kernel@vger.kernel.org, Peter Rosin Subject: [PATCH 07/15] mux: make device_type const Date: Tue, 29 Aug 2017 10:49:52 +0200 Message-Id: <20170829084952.7223-1-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <1503130946-2854-8-git-send-email-bhumirks@gmail.com> References: <1503130946-2854-8-git-send-email-bhumirks@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [81.224.168.30] X-ClientProxiedBy: HE1PR06CA0135.eurprd06.prod.outlook.com (2603:10a6:7:16::22) To VI1PR0202MB2560.eurprd02.prod.outlook.com (2603:10a6:801:6::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 48851e71-6636-43f5-8b0c-08d4eebb0078 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(2017082002075)(300000503095)(300135400095)(201703131423075)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:VI1PR0202MB2560; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0202MB2560;3:01DrSUnRR9airWVIIJ1gIYHri+P4ui+wTGH35cmLn9/b37zzpql60zefsXFmXZ70Yua+JsgLQlMfvjkvtPsn1Te168w8BihYBZNfqDTKOp6Piry12NE/UZaxICnHtHuBKiKkvk+7bBQGcpVlErNHJBWGpdwE5l+H4j9YISBeWseCp3vFFCCauV646baWB1OiZNyfE6/BIrSLmm3zR9Bm8Kyk+G/8cfcS1kdG/VZxE2Bn58tCABWbEy0oFzDe4K03;25:FRayX1YSG+a3Ga1ZdkWPGnC3wgP8tzGbCw+E4rgximkEodrASJKfGI/3FEcKYmhrBcV6Ln2pDdrf8dgR4SXWasrH1lUK/mXuNJ3DBB7uxC7tNmve7dW0p2sTvAF9jFwGtouV1fkVNxV3M35IPqwkKme/3UomBUVz5dNQP38l0WsMRkiFj49xMq0SDS4DFHytT6QDPG1wdbNUZVycteL17QLra2J+lQWgefcitFrPf3IVKk9ypGsyJ0uky+Tnzem8ul1pXEpDpsDFIdKCdOaELUB7UZl49xiTR3HSycsSF5JczXv5Yd3r6otOWagZ1RRkVgS/sxOnKGWvmR4380cIkw==;31:1snINHbNlr2HUyNcqcmVs36wrlCXfFd43hXcGGC/0M13UhE/AfrIKlqhWEnVrSPt7AvE3lygxF4OEeSmwWLbgatyjXMip7qsO5xNap0zko6jG909h9E7/6N9pJdmteRUA3tl4begMJU2E8aU8rRiB7QIqRXD04Ya89f8Zs79jy3upcrW+FoMGDZ4kYRCWECF1DHLSaMdb7kU0RsXk5kImFjLNygAiyl4be5qkkREHFU= X-MS-TrafficTypeDiagnostic: VI1PR0202MB2560: X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6041248)(20161123562025)(20161123560025)(20161123555025)(20161123564025)(2016111802025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(6043046)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:VI1PR0202MB2560;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:VI1PR0202MB2560; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0202MB2560;4:SSFB7Fak6VSUB0uYpH1A0yFybkMoj0MUStlNkJqxNJQOMCz5RnaReiAC+ihlajcoHLJnWqX1s2YIiCQzowp41BgbOgfJ/51PflCou9UBm/eHhbBYsfpcr+o6TFQlNzW+WMa5jGggKQT19r8lRm/Gi6zSC3Vcj6qsU77qG0e9FX0iX3jleJhMqJOH/UIjWbC7sBntjEaAUJiKzmWT5zQLds3WBINMmP4rHbs0gI0iLmvNCbKzAi8A6JqNUjwBSyxD X-Forefront-PRVS: 0414DF926F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(7370300001)(4630300001)(6009001)(39830400002)(199003)(189002)(47776003)(5003940100001)(6666003)(110136004)(105586002)(107886003)(2351001)(6916009)(2950100002)(53936002)(2361001)(66066001)(86362001)(7736002)(68736007)(81156014)(81166006)(106356001)(575784001)(50226002)(305945005)(101416001)(189998001)(8676002)(42186005)(97736004)(54906002)(50986999)(74482002)(5660300001)(6486002)(33646002)(48376002)(3846002)(6116002)(478600001)(50466002)(6512007)(6506006)(1076002)(25786009)(76176999)(7350300001)(4326008)(2906002)(36756003)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR0202MB2560;H:orc.pedanet;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;VI1PR0202MB2560;23:/qg40uU8K1GyKdsCqWL59bwkcDcsfpxeNqgXPFw?= =?us-ascii?Q?2oPY7ONhHCzsGCp3U7ZeyD4YyxHALdHmgdQe+EU/u/PgQQwFk5qJLEjVMPkB?= =?us-ascii?Q?modjlkopGdPxFgfHGGbj3tiHIYRfCs2O+H3kEQtl/I/a2x8SFC24xS9FX7cq?= =?us-ascii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WH62qKXCFAfBLQhRSGNCNGaAKt7lYakfVV74aOIJzPtB7otYeB0b0F3HmmBbWJYy8Dgw47jCiQe/jaMLaEtdALWSTe3pNCd0JU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2017 08:50:29.2621 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0202MB2560 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 816 Lines: 34 From: Bhumika Goyal Make this const as it is only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal Signed-off-by: Peter Rosin --- drivers/mux/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Hi Greg! Here's a rebased version, handling the mux-core.c -> core.c rename. Cheers, Peter diff --git a/drivers/mux/core.c b/drivers/mux/core.c index aabfb1549d4e..2260063b0ea8 100644 --- a/drivers/mux/core.c +++ b/drivers/mux/core.c @@ -58,7 +58,7 @@ static void mux_chip_release(struct device *dev) kfree(mux_chip); } -static struct device_type mux_type = { +static const struct device_type mux_type = { .name = "mux-chip", .release = mux_chip_release, }; -- 2.11.0