]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: nand: change return type of nand_get_flash_type() to int
authorMichael Trimarchi <michael@amarulasolutions.com>
Mon, 25 Jul 2022 08:06:06 +0000 (10:06 +0200)
committerMichael Trimarchi <michael@amarulasolutions.com>
Mon, 22 Aug 2022 09:15:04 +0000 (11:15 +0200)
commitc76f9ddf91b14312e71594459ebb3dd72d885aa8
treece67ff83e709a7162c35ba1b8a7665d9dd8ccfca
parent8a67acfce24f825b4935c87b2dbd70915d6eeeaa
mtd: nand: change return type of nand_get_flash_type() to int

Upstream linux commit 4722c0e958e636.

The returned "type" is never used in nand_scan_ident() and spl code

Make nand_get_flash_type() simply return an integer value in order
to avoid unnecessary ERR_PTR/PTR_ERR dance.

Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Reviewed-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
drivers/mtd/nand/raw/mt7621_nand.c
drivers/mtd/nand/raw/mxs_nand_spl.c
drivers/mtd/nand/raw/nand_base.c
include/linux/mtd/rawnand.h