]> git.sur5r.net Git - u-boot/commit
sf: probe: Code cleanup
authorJagan Teki <jteki@openedev.com>
Tue, 3 Nov 2015 18:57:35 +0000 (00:27 +0530)
committerJagan Teki <jteki@openedev.com>
Fri, 11 Dec 2015 16:42:23 +0000 (22:12 +0530)
commit0edae52f08fe602ebe9ba1d132f91552cac86472
treef5186cd102e5163ae80570e098b5c929b0376add
parent1e90d9fd3148cebcd6f87cbbaed564b878e2b24a
sf: probe: Code cleanup

- Move bar read code below the bar write hance both
  at once place, hence it easy for #ifdef macro only
  once and readable.
- Move read_cmd_array at top

Tested-by: Jagan Teki <jteki@openedev.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Jagan Teki <jteki@openedev.com>
drivers/mtd/spi/sf_ops.c