mlxsw: switchx2: Use generic listener struct for events
authorNogah Frankel <nogahf@mellanox.com>
Fri, 25 Nov 2016 09:33:36 +0000 (10:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Nov 2016 02:22:14 +0000 (21:22 -0500)
commit6bf08b53ed84a256f5e789d278e4852006f8e387
tree4bce41fd8686492b89eccb50a5f107b4ffc91dd1
parent4544913ed79275ce6a1cd98baa7edbf018c5242a
mlxsw: switchx2: Use generic listener struct for events

Change the events to use the generic listener struct.
Merge the event list into the trap list, so the same functions will
handle both.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/switchx2.c