From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753867AbdHWKRR (ORCPT ); Wed, 23 Aug 2017 06:17:17 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34957 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753613AbdHWKRP (ORCPT ); Wed, 23 Aug 2017 06:17:15 -0400 From: Arvind Yadav To: andrew@lunn.ch, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 0/3] constify dsa_switch_ops Date: Wed, 23 Aug 2017 15:46:56 +0530 Message-Id: <1503483419-21780-1-git-send-email-arvind.yadav.cs@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 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 drivers/net/dsa/dsa_loop.c | 2 +- drivers/net/dsa/lan9303-core.c | 2 +- drivers/net/dsa/mt7530.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) -- 1.9.1