tpm/tpm_i2c_stm_st33: Interrupt management improvement
authorChristophe Ricard <christophe.ricard@gmail.com>
Mon, 1 Dec 2014 18:32:58 +0000 (19:32 +0100)
committerPeter Huewe <peterhuewe@gmx.de>
Sat, 17 Jan 2015 13:00:08 +0000 (14:00 +0100)
commitc3804b8cdbd2abb50cf87318b13660dff46b7fe8
tree46d42a57c7b6b7e1a9590ddc5241ba56649a92ce
parent8dcd19874f31b7a806a2a2b129e94882918c3aaf
tpm/tpm_i2c_stm_st33: Interrupt management improvement

Improve the irq management by using a new function wait_for_stat.
Instead of using a completion struct, we rely on the waitqueue read_queue
and int_queue from chip->vendor field.

Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm_i2c_stm_st33.c