netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] constify dsa_switch_ops
@ 2017-08-23 10:16 Arvind Yadav
  2017-08-23 10:16 ` [PATCH 1/3] net: dsa: loop: " Arvind Yadav
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Arvind Yadav @ 2017-08-23 10:16 UTC (permalink / raw)
  To: andrew, vivien.didelot, f.fainelli; +Cc: linux-kernel, netdev

dsa_switch_ops are not supposed to change at runtime. All functions
working with dsa_switch_ops provided by <net/dsa.h> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-08-24  5:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-23 10:16 [PATCH 0/3] constify dsa_switch_ops Arvind Yadav
2017-08-23 10:16 ` [PATCH 1/3] net: dsa: loop: " Arvind Yadav
2017-08-23 10:16 ` [PATCH 2/3] net: dsa: lan9303: " Arvind Yadav
2017-08-23 10:16 ` [PATCH 3/3] net: dsa: mt7530: " Arvind Yadav
2017-08-23 12:45 ` [PATCH 0/3] " Andrew Lunn
2017-08-24  5:30   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).