mtd: st_spi_fsm: Move runtime configurable msg sequences into device's struct
authorLee Jones <lee.jones@linaro.org>
Thu, 20 Mar 2014 09:21:06 +0000 (09:21 +0000)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 20 Mar 2014 11:17:21 +0000 (04:17 -0700)
commite6b1bb4e18919b969cd876d48b40733993c2a7c7
treebfcc085db628299cb66ceb38cdeabe18494c4aac
parentcd7cac9ec3b691e6e0aca92f7c97e5cbb390d17c
mtd: st_spi_fsm: Move runtime configurable msg sequences into device's struct

Until now the dynamically configurable message sequences for read, write
and enable 32bit addressing have been global. Brian makes a good point
why this should not be the case. If there are ever two FSM's located on
the same platform, we could be potentially introducing a race condition
on "needlessly shared data".

Suggested-by: Brian Norris <computersforpeace@gmail.com>
Acked-by Angus Clark <angus.clark@st.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/st_spi_fsm.c