]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: hellcreek: refactor hellcreek_port_setup_tc() to use switch/case
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 28 Sep 2022 09:52:00 +0000 (12:52 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Sep 2022 01:52:05 +0000 (18:52 -0700)
commit457ff0718ad8a108f0e5d2e3185abc7779d879de
treef14c4c59c1f6eaa195d4cb2db700a2994c671b89
parent5d21596396c74e6cc659d4c1f54eca8dbe38c085
net: dsa: hellcreek: refactor hellcreek_port_setup_tc() to use switch/case

The following patch will need to make this function also respond to
TC_QUERY_BASE, so make the processing more structured around the
tc_setup_type.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/hirschmann/hellcreek.c