Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754039AbdHWMqB (ORCPT ); Wed, 23 Aug 2017 08:46:01 -0400 Received: from vps0.lunn.ch ([178.209.37.122]:40907 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753979AbdHWMp6 (ORCPT ); Wed, 23 Aug 2017 08:45:58 -0400 Date: Wed, 23 Aug 2017 14:45:56 +0200 From: Andrew Lunn To: Arvind Yadav Cc: vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 0/3] constify dsa_switch_ops Message-ID: <20170823124556.GC28612@lunn.ch> References: <1503483419-21780-1-git-send-email-arvind.yadav.cs@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1503483419-21780-1-git-send-email-arvind.yadav.cs@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 534 Lines: 15 On Wed, Aug 23, 2017 at 03:46:56PM +0530, Arvind Yadav wrote: > dsa_switch_ops are not supposed to change at runtime. All functions > working with dsa_switch_ops provided by work with > const dsa_switch_ops. So mark the non-const structs as const. > > Arvind Yadav (3): > [PATCH 1/3] net: dsa: loop: constify dsa_switch_ops > [PATCH 2/3] net: dsa: lan9303: constify dsa_switch_ops > [PATCH 3/3] net: dsa: mt7530: constify dsa_switch_ops For the whole series: Reviewed-by: Andrew Lunn Andrew