Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754675AbcKUVNG (ORCPT ); Mon, 21 Nov 2016 16:13:06 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:59458 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753564AbcKUVNF (ORCPT ); Mon, 21 Nov 2016 16:13:05 -0500 Date: Mon, 21 Nov 2016 16:13:02 -0500 (EST) Message-Id: <20161121.161302.699676538738993647.davem@davemloft.net> To: bhumirks@gmail.com Cc: julia.lawall@lip6.fr, michael.hennerich@analog.com, aar@pengutronix.de, stefan@osg.samsung.com, linux-wpan@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: ieee802154: constify ieee802154_ops structures From: David Miller In-Reply-To: <1479760214-32624-1-git-send-email-bhumirks@gmail.com> References: <1479760214-32624-1-git-send-email-bhumirks@gmail.com> X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 21 Nov 2016 12:13:37 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 431 Lines: 12 From: Bhumika Goyal Date: Tue, 22 Nov 2016 02:00:14 +0530 > Declare the structure ieee802154_ops as const as it is only passed as an > argument to the function ieee802154_alloc_hw. This argument is of type > const struct ieee802154_ops *, so ieee80254_ops structures having this > property can be declared as const. > Done using Coccinelle: ... > Signed-off-by: Bhumika Goyal Applied.