base-files: unify get_dt_led helper function
authorChristian Lamparter <chunkeey@gmail.com>
Tue, 28 Nov 2017 21:51:06 +0000 (22:51 +0100)
committerJohn Crispin <john@phrozen.org>
Thu, 14 Dec 2017 08:29:30 +0000 (09:29 +0100)
commitda6fdce3652529ca255f66293645aeb28ad81eb3
tree2d0aaa2a325f474aac009773b97f8490317442bb
parenta8d3d517d0cf9f3d5a651091cfd193f3e7a454ce
base-files: unify get_dt_led helper function

Lantiq and IPQ806X (which includes IPQ40XX) both define the
same custom function {ipq806x|lantiq}_get_dt_led.

This patch moves the function into the base-file package at
lib/functions/leds.sh to make it more accessible for other
targets as well.

Cc: Mathias Kresin <dev@kresin.me>
Cc: John Crispin <john@phrozen.org>
Cc: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
package/base-files/files/lib/functions/leds.sh
target/linux/ipq806x/base-files/etc/diag.sh
target/linux/ipq806x/base-files/lib/ipq806x.sh
target/linux/lantiq/base-files/etc/board.d/01_leds
target/linux/lantiq/base-files/etc/diag.sh
target/linux/lantiq/base-files/lib/functions/lantiq.sh