treewide: move calibration data extraction function to library
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 22 Sep 2019 09:57:13 +0000 (11:57 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sun, 13 Oct 2019 19:48:58 +0000 (21:48 +0200)
commit5b6a80909280cafcb1e28ca120eed6922d68dc5a
tree5b779cd9deec7067178b20a329d48d663b4a6820
parentc1388a2deb00b65ee4a06c0a1d4c461f2194ef38
treewide: move calibration data extraction function to library

This moves the almost identical calibration data extraction
functions present multiple times in several targets to a single
library file /lib/functions/caldata.sh.

Functions are renamed with more generic names to merge different
variants that only differ in their names.

Most of the targets used find_mtd_chardev, while some used
find_mtd_part inside the extraction code. To merge them, the more
abundant version with find_mtd_chardev is used in the common code.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
[rebase on latest master; add mpc85xx]
Signed-off-by: David Bauer <mail@david-bauer.net>
package/base-files/files/lib/functions/caldata.sh [new file with mode: 0644]
target/linux/apm821xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
target/linux/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom
target/linux/mpc85xx/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom