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.
Showing the changes to include/linux/platform_data (1 of 2 files). Show all
Unified · Split
| @@ -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__ */ | |