diff options
| author | Christophe Ricard <christophe.ricard@gmail.com> | 2014-12-01 13:32:51 -0500 |
|---|---|---|
| committer | Peter Huewe <peterhuewe@gmx.de> | 2015-01-17 08:00:07 -0500 |
| commit | b9626f32876debc356fadb6e19aebcfe9d70c5ff (patch) | |
| tree | 25018df6762b94ae4aa629f2dc1a02c854b63456 /include/linux/platform_data | |
| parent | 2dbca7508f99618fc6cf964134403dccb63968bd (diff) | |
tpm/tpm_i2c_stm_st33: Add new tpm_stm_dev structure and remove tpm_i2c_buffer[0], [1] buffer.
In order to clean big buffers in st33zp24_platform_data structure,
replace with tpm_stm_dev for driver internal usage.
As only one buffer is really necessary replace with buf field.
In the mean time move tpm_i2c_stm_st33.h to include/linux/platform_data.
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>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/tpm_i2c_stm_st33.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/include/linux/platform_data/tpm_i2c_stm_st33.h b/include/linux/platform_data/tpm_i2c_stm_st33.h new file mode 100644 index 000000000000..88f9cb18113a --- /dev/null +++ b/include/linux/platform_data/tpm_i2c_stm_st33.h | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* | ||
| 2 | * STMicroelectronics TPM I2C Linux driver for TPM ST33ZP24 | ||
| 3 | * Copyright (C) 2009, 2010 STMicroelectronics | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation; either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 17 | * | ||
| 18 | * STMicroelectronics version 1.2.0, Copyright (C) 2010 | ||
| 19 | * STMicroelectronics comes with ABSOLUTELY NO WARRANTY. | ||
| 20 | * This is free software, and you are welcome to redistribute it | ||
| 21 | * under certain conditions. | ||
| 22 | * | ||
| 23 | * @Author: Christophe RICARD tpmsupport@st.com | ||
| 24 | * | ||
| 25 | * @File: stm_st33_tpm_i2c.h | ||
| 26 | * | ||
| 27 | * @Date: 09/15/2010 | ||
| 28 | */ | ||
| 29 | #ifndef __STM_ST33_TPM_I2C_MAIN_H__ | ||
| 30 | #define __STM_ST33_TPM_I2C_MAIN_H__ | ||
| 31 | |||
| 32 | |||
| 33 | #define TPM_ST33_I2C "st33zp24_i2c" | ||
| 34 | |||
| 35 | struct st33zp24_platform_data { | ||
| 36 | int io_serirq; | ||
| 37 | int io_lpcpd; | ||
| 38 | }; | ||
| 39 | |||
| 40 | #endif /* __STM_ST33_TPM_I2C_MAIN_H__ */ | ||
