kernel: mtdsplit: bcm_wfi: always add img partitions
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Wed, 3 Jun 2020 16:44:50 +0000 (18:44 +0200)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Wed, 3 Jun 2020 16:50:58 +0000 (18:50 +0200)
commit6c7cbf1420a3a1757ce62d94bb89c71564b38ba0
tree32341ef63ca31685c0fa1faa38d14273a88263d2
parent2f5a242f6762ce7233168785f1eb1ebcd1e4bd36
kernel: mtdsplit: bcm_wfi: always add img partitions

This is useful when booting OpenWrt from ramdisks in order to have both
images partitions defined.
Furthermore, instead of always using img2 for the inactive image, let's use
img1 or img2 accordingly.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_bcm_wfi.c