From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752604AbdJLP21 (ORCPT ); Thu, 12 Oct 2017 11:28:27 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:51012 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751682AbdJLP20 (ORCPT ); Thu, 12 Oct 2017 11:28:26 -0400 X-Google-Smtp-Source: AOwi7QBTAUk/Rw6Mdtvg0Y8CdORGjp6PbF2aIYf7Hrrq/X5fRyUyhrdNZ3nntY/6r2FC/gwt2KlbHw== From: Bhumika Goyal To: julia.lawall@lip6.fr, arnd@arndb.de, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] misc: make config_item_type const Date: Thu, 12 Oct 2017 17:28:11 +0200 Message-Id: <1507822091-26687-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 Make this const as it is only stored in the const "ci_type" field of a config_item structure. Signed-off-by: Bhumika Goyal --- It does not seem to be possible to compile this driver and it has not received many patches in the last few years, so I wonder if it is still useful to keep it in the kernel. drivers/misc/spear13xx_pcie_gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/spear13xx_pcie_gadget.c b/drivers/misc/spear13xx_pcie_gadget.c index ee120dc..b9d2649 100644 --- a/drivers/misc/spear13xx_pcie_gadget.c +++ b/drivers/misc/spear13xx_pcie_gadget.c @@ -598,7 +598,7 @@ static ssize_t pcie_gadget_bar0_data_store(struct config_item *item, NULL, }; -static struct config_item_type pcie_gadget_target_type = { +static const struct config_item_type pcie_gadget_target_type = { .ct_attrs = pcie_gadget_target_attrs, .ct_owner = THIS_MODULE, }; -- 1.9.1