]> 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)
commitb2496c6cf2f6f09884a540fbf4dde252093d4242
treef14c4c59c1f6eaa195d4cb2db700a2994c671b89
parent66ad3c8704fccbc51b9880ec77c43d32afef2dd7
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