realtek: move port filtering out of uci_set_poe()
authorSander Vanheule <sander@svanheule.net>
Wed, 24 Jan 2024 09:49:41 +0000 (10:49 +0100)
committerSander Vanheule <sander@svanheule.net>
Mon, 12 Feb 2024 19:46:51 +0000 (20:46 +0100)
commit7cbfe5654d6eeda211edb0fd6938177cbe32c5e0
treec1597c3fbe96343ed755341792818869a307a56b
parent356a0b86ebe111609001cfb3f553ca43182d551b
realtek: move port filtering out of uci_set_poe()

uci_set_poe() now performs two duties: filtering the list of device
ports to exclude non-PoE ports, and generating the PoE related device
config.

Extract the port filtering to an external function, which is made a bit
more readable by the use of 'sort -V [-r] | uniq -u' to filter duplicate
entries out of a (reverse) version sorted list.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/base-files/etc/board.d/02_network