[PATCH v3 10/10] kernel: mtdsplit_uimage: replace "edimax, uimage" parser

Rafał Miłecki zajec5 at gmail.com
Wed Jan 20 10:39:52 EST 2021


On 20.01.2021 15:35, Bjørn Mork wrote:
> @@ -283,59 +264,10 @@ static struct mtd_part_parser uimage_generic_parser = {
>   	.owner = THIS_MODULE,
>   	.name = "uimage-fw",
>   	.of_match_table = mtdsplit_uimage_of_match_table,
> -	.parse_fn = mtdsplit_uimage_parse_generic,
> +	.parse_fn = __mtdsplit_parse_uimage,
>   	.type = MTD_PARSER_TYPE_FIRMWARE,
>   };
>   
> -/**************************************************
> - * Edimax
> - **************************************************/
> -
> -#define FW_EDIMAX_OFFSET	20
> -#define FW_MAGIC_EDIMAX		0x43535953

Same thing here? Maybe put that in the dt-bindings/mtd/partitions/uimage.h ?



More information about the openwrt-devel mailing list