spi: Fix flag collision for SST_WP
authorSimon Glass <sjg@chromium.org>
Fri, 12 Dec 2014 14:06:12 +0000 (19:36 +0530)
committerSimon Glass <sjg@chromium.org>
Sat, 13 Dec 2014 22:08:04 +0000 (15:08 -0700)
commitb648742a17c16639976ac5b38f246cb0f7d41da5
tree35306ae878632d24c4e68ee2d034e596757e2a16
parent6dd6e90e13acc4014634d78fc469e7e82eefc255
spi: Fix flag collision for SST_WP

At present SECT_4K is the same as SST_WP so we cannot tell these apart. Fix
this so that the table in sf_params.c can be used correctly.

Reported-by: Jens Rottmann <Jens.Rottmann@adlinktech.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
drivers/mtd/spi/sf_internal.h