Message ID | 1503130946-2854-8-git-send-email-bhumirks@gmail.com (mailing list archive) |
---|---|
State | Awaiting Upstream, archived |
Headers | show
Return-Path: <platform-driver-x86-owner@kernel.org> 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 49F0F60386 for <patchwork-platform-driver-x86@patchwork.kernel.org>; Sat, 19 Aug 2017 08:25:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3BF6C28D9F for <patchwork-platform-driver-x86@patchwork.kernel.org>; Sat, 19 Aug 2017 08:25:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2F89228DAC; Sat, 19 Aug 2017 08:25:18 +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=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 B2CA528DA1 for <patchwork-platform-driver-x86@patchwork.kernel.org>; Sat, 19 Aug 2017 08:25:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752463AbdHSIZR (ORCPT <rfc822;patchwork-platform-driver-x86@patchwork.kernel.org>); Sat, 19 Aug 2017 04:25:17 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:37765 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752405AbdHSIZL (ORCPT <rfc822;platform-driver-x86@vger.kernel.org>); Sat, 19 Aug 2017 04:25:11 -0400 Received: by mail-pg0-f67.google.com with SMTP id 83so17944324pgb.4; Sat, 19 Aug 2017 01:25:11 -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=ex5teDLNBOaFuN+Sk9IyKp6ERLEq9wuOu8jRVnRR/FQ=; b=frEbXp281Hf6kmbNuAQJ8gdBqWFEPC24qEIb2KR1T03GlBYuG7ND1LIu536ColGolI 5ck7Vsv0EbIhsYeqbrAKkF94xXHunFCoX4SaK+761YQxq2zkghduNRTZKrcdVyaGU/B4 yUq5Q3dJcUDB5ryIos4UhFkDPHybIQCefz1ItTgLAoSw40b1XccOyPEKjIjxFu58hrAF V8e/faq+qohjHwEn1z1tYI9YAsmp3EQ2y+ZyTVMkn9pEhPtjYzIb/2K1ZGTyKFPThhCc f5PKTLYotod/0HfmoPuTRZKiBIJzfxpGy/CHS1bTuuD6XKK9u1v4PnjzZsofKhAsaw5C SeAg== 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=ex5teDLNBOaFuN+Sk9IyKp6ERLEq9wuOu8jRVnRR/FQ=; b=fvrqhR/qyXknwTfFkGAy0CbB5FRr+nyo/oBk/YIwJ7ONJoeyun8UHQVXoUcOoU6e2o j7LJWt7ssr0zcBR5JLWZZuMU50HsM3w7hyMzKeTQNUyGFAzzb27BZv36Vzt3lthFlySv 6RG3cjnUDMO5xfaAyGBauPLTUWex9najPRLfavIv0C/mXXQXCYzK1szbyfY+ueiJhzXc 4O8j3WBFrSYHWOVpigvbIUA+Jsg//SNpt/UGsJ4+HCYByeujoyg4GzvEB0gFgZDdqyVs GUxgvPN97Yw3PfyEd/fgN27Z1vCoY3jn9Uk85NxXCulcOVlTyL4YC+lLclo0cZqdxYOg 7pqw== X-Gm-Message-State: AHYfb5gRSVVvkTB2TT9/x3jSwpjz9jv5cA+3/kqWAqmFn0IDGXOu/1qb I8ItxSPk0niJTg== X-Received: by 10.84.248.69 with SMTP id e5mr12570083pln.38.1503131110706; Sat, 19 Aug 2017 01:25:10 -0700 (PDT) Received: from gmail.com ([59.94.206.141]) by smtp.gmail.com with ESMTPSA id u28sm14196722pfg.95.2017.08.19.01.24.54 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 19 Aug 2017 01:25:10 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 19 Aug 2017 13:54:52 +0530 From: Bhumika Goyal <bhumirks@gmail.com> To: julia.lawall@lip6.fr, bp@alien8.de, mchehab@kernel.org, daniel.vetter@intel.com, jani.nikula@linux.intel.com, seanpaul@chromium.org, airlied@linux.ie, g.liakhovetski@gmx.de, tomas.winkler@intel.com, dwmw2@infradead.org, computersforpeace@gmail.com, boris.brezillon@free-electrons.com, marek.vasut@gmail.com, richard@nod.at, cyrille.pitchen@wedev4u.fr, peda@axentia.se, kishon@ti.com, bhelgaas@google.com, thierry.reding@gmail.com, jonathanh@nvidia.com, dvhart@infradead.org, andy@infradead.org, ohad@wizery.com, bjorn.andersson@linaro.org, freude@de.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, jth@kernel.org, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, lduncan@suse.com, cleech@redhat.com, johan@kernel.org, elder@kernel.org, gregkh@linuxfoundation.org, heikki.krogerus@linux.intel.com, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linux-mtd@lists.infradead.org, linux-pci@vger.kernel.org, linux-tegra@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-s390@vger.kernel.org, fcoe-devel@open-fcoe.org, linux-scsi@vger.kernel.org, open-iscsi@googlegroups.com, greybus-dev@lists.linaro.org, devel@driverdev.osuosl.org, linux-usb@vger.kernel.org Cc: Bhumika Goyal <bhumirks@gmail.com> Subject: [PATCH 07/15] mux: make device_type const Date: Sat, 19 Aug 2017 13:52:18 +0530 Message-Id: <1503130946-2854-8-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503130946-2854-1-git-send-email-bhumirks@gmail.com> References: <1503130946-2854-1-git-send-email-bhumirks@gmail.com> Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: <platform-driver-x86.vger.kernel.org> X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/mux/mux-core.c b/drivers/mux/mux-core.c index 2fe96c4..68bd16d 100644 --- a/drivers/mux/mux-core.c +++ b/drivers/mux/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, };
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 <bhumirks@gmail.com> --- drivers/mux/mux-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)