WAN: HDLC: Call notifiers before and after changing device type
authorAndrew Lunn <andrew@lunn.ch>
Thu, 3 Dec 2015 20:12:31 +0000 (21:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Dec 2015 22:41:42 +0000 (17:41 -0500)
commit2f8364a291e8adde25c93f97a76abbcaf4b1ed3f
tree7b7e3de286880cf4938c00803df3a1ec32d22997
parentff3516442768f0babe7ea2db62e34aee1d76e969
WAN: HDLC: Call notifiers before and after changing device type

An HDLC device can change type when the protocol driver is changed.
Calling the notifier change allows potential users of the interface
know about this planned change, and even block it. After the change
has occurred, send a second notification to users can evaluate the new
device type etc.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/hdlc.c
drivers/net/wan/hdlc_cisco.c
drivers/net/wan/hdlc_fr.c
drivers/net/wan/hdlc_ppp.c
drivers/net/wan/hdlc_raw.c
drivers/net/wan/hdlc_raw_eth.c
drivers/net/wan/hdlc_x25.c
include/linux/hdlc.h