mtd: spi-nor: improve macronix_quad_enable()
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Tue, 6 Dec 2016 16:01:41 +0000 (17:01 +0100)
committerCyrille Pitchen <cyrille.pitchen@atmel.com>
Fri, 10 Feb 2017 12:54:52 +0000 (13:54 +0100)
commit32c90f1682a01ff9e1c2fa83c18a15e35f7563ce
treeb1455a51c470b16f8fa97b8ccfaa8acf61c7a015
parente99ca98f1d7190c16601b00d0c96212d7c00577d
mtd: spi-nor: improve macronix_quad_enable()

The patch checks whether the Quad Enable bit is already set in the Status
Register. If so, the function exits immediately with a successful return
code.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
drivers/mtd/spi-nor/spi-nor.c