From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751506AbdFHGCf (ORCPT ); Thu, 8 Jun 2017 02:02:35 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33122 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750752AbdFHGCe (ORCPT ); Thu, 8 Jun 2017 02:02:34 -0400 From: Bhumika Goyal To: julia.lawall@lip6.fr, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jeffrey.t.kirsher@intel.com, davem@davemloft.net Cc: Bhumika Goyal Subject: [PATCH 0/2] drivers: net: add const to mii_phy_ops structures Date: Thu, 8 Jun 2017 11:30:56 +0530 Message-Id: <1496901658-6476-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The object references of mii_phy_ops structures are only stored in the ops field of a mii_phy_def structure. This ops field is of type const. So, mii_phy_ops structures having similar properties can be declared as const. Bhumika Goyal (2): drivers/net/sungem: add const to mii_phy_ops structures drivers: net: emac: add const to mii_phy_ops structures drivers/net/ethernet/ibm/emac/phy.c | 12 ++++++------ drivers/net/sungem_phy.c | 26 +++++++++++++------------- 2 files changed, 19 insertions(+), 19 deletions(-) -- 2.7.4