From patchwork Sat Feb 11 07:10:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9567871 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 03BCF60231 for ; Sat, 11 Feb 2017 07:10:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF6182856D for ; Sat, 11 Feb 2017 07:10:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D4393285E3; Sat, 11 Feb 2017 07:10:55 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 7F2BB2856D for ; Sat, 11 Feb 2017 07:10:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751210AbdBKHKx (ORCPT ); Sat, 11 Feb 2017 02:10:53 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34016 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751150AbdBKHKw (ORCPT ); Sat, 11 Feb 2017 02:10:52 -0500 Received: by mail-pf0-f196.google.com with SMTP id o64so2682217pfb.1; Fri, 10 Feb 2017 23:10:52 -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=+jnWAGxM89nycxOS4o1UW+ngFb4mNOZVi32i73Qk6bk=; b=M+6MRvLuW+/b7B7BL/0yzuwOFu2U5Iceh2ZSSrU5F5MBvEzj7rQz0rDMHIGMfCf82T ejkH/yBqP5wKOZojcKRY5ESQ06ZpAt+HAS1yITZcFQPSjjCfFV5dEtS7lCZIIUfC20nc mPNFfBUBnUR9POSolMjVGsDiDT+lRyxidLx+7YzC8HFcutphOzV+0W7BDx7FFYa3g3Vf SdecrFG0lS0Aym/BBMM7W7T/2KKwz11F7GuXebP8vzVHHiKTkrlkD9+YVRHyiaXqxAgv kmx2DGh4N6eOuZT+jPKOP7BOWVhXOfBbTXsFrUeyNY93AN7UmsLYSXJB64mZczbsiY0A pUfg== 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=+jnWAGxM89nycxOS4o1UW+ngFb4mNOZVi32i73Qk6bk=; b=Q1mpY0MBTAfGH6Ik5GXA0+WxOrEkwFLUrdAmF4A+uZhp2POYZMUxtQcfnvWWmTdmIU Z72xGcBnnMkxbhWYLrvo7BPnkAtp/Hck/57c7Hp/UeAPOdUr6pKqsTo0UPfrCdyat+ZQ nrjvmYc8TUxLPPEyloODruIqyOcr/0RMRP3SmuMnt45KIMYaPfZI2DfDz5ZRzTyNxHbl Z6lOgnmX5ikidrP7rov1yL4eqn3aXDUSzW3NBv5AhI+wfpEFN5aXC/DJ9tRxTRf5Vje8 MtcLbFQXBClGfuj8ps06bZ3sYNxP3cY7HFGj5JI487NWYXmz3E9tNUUhHRu1LCOxpyW1 Zddw== X-Gm-Message-State: AMke39lRplloLAEL6hgcyZmWd8gu3gIkK0kqmSgJx5j9LLBokgRN5sv766R/C/9wzy20QA== X-Received: by 10.99.139.68 with SMTP id j65mr15525700pge.64.1486797051673; Fri, 10 Feb 2017 23:10:51 -0800 (PST) Received: from gmail.com ([2405:204:518f:6e9c:34e8:ce58:7cab:84a7]) by smtp.gmail.com with ESMTPSA id r21sm9096184pfd.95.2017.02.10.23.10.43 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 10 Feb 2017 23:10:50 -0800 (PST) Received: by gmail.com (sSMTP sendmail emulation); Sat, 11 Feb 2017 12:40:39 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, srinivas.pandruvada@linux.intel.com, jikos@kernel.org, benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] HID: intel-ish-hid: constify device_type structure Date: Sat, 11 Feb 2017 12:40:37 +0530 Message-Id: <1486797037-31415-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Declare device_type structure as const as it is only stored in the type field of a device structure. This field is of type const, so add const to the declaration of device_type structure. File size before: drivers/hid/intel-ish-hid/ishtp/bus.o text data bss dec hex filename 4260 336 16 4612 1204 hid/intel-ish-hid/ishtp/bus.o File size after: drivers/hid/intel-ish-hid/ishtp/bus.o text data bss dec hex filename 4324 272 16 4612 1204 hid/intel-ish-hid/ishtp/bus.o Signed-off-by: Bhumika Goyal Acked-by: Srinivas Pandruvada --- drivers/hid/intel-ish-hid/ishtp/bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/intel-ish-hid/ishtp/bus.c b/drivers/hid/intel-ish-hid/ishtp/bus.c index f4cbc74..5f382fe 100644 --- a/drivers/hid/intel-ish-hid/ishtp/bus.c +++ b/drivers/hid/intel-ish-hid/ishtp/bus.c @@ -358,7 +358,7 @@ static void ishtp_cl_dev_release(struct device *dev) kfree(to_ishtp_cl_device(dev)); } -static struct device_type ishtp_cl_device_type = { +static const struct device_type ishtp_cl_device_type = { .release = ishtp_cl_dev_release, };