Commit d479042c authored by Kent Yoder's avatar Kent Yoder

tpm_i2c_stm_st33: removed unused variables/code

Reported-by: default avatarPeter Hüwe <PeterHuewe@gmx.de>
Signed-off-by: default avatarPeter Hüwe <PeterHuewe@gmx.de>
Signed-off-by: default avatarKent Yoder <key@linux.vnet.ibm.com>
parent 7240b983
...@@ -123,9 +123,6 @@ static int read8_reg(struct i2c_client *client, u8 tpm_register, ...@@ -123,9 +123,6 @@ static int read8_reg(struct i2c_client *client, u8 tpm_register,
{ {
u8 status = 0; u8 status = 0;
u8 data; u8 data;
struct st33zp24_platform_data *pin_infos;
pin_infos = client->dev.platform_data;
data = TPM_DUMMY_BYTE; data = TPM_DUMMY_BYTE;
status = write8_reg(client, tpm_register, &data, 1); status = write8_reg(client, tpm_register, &data, 1);
...@@ -203,10 +200,8 @@ static int wait_for_serirq_timeout(struct tpm_chip *chip, bool condition, ...@@ -203,10 +200,8 @@ static int wait_for_serirq_timeout(struct tpm_chip *chip, bool condition,
{ {
int status = 2; int status = 2;
struct i2c_client *client; struct i2c_client *client;
struct st33zp24_platform_data *pin_infos;
client = (struct i2c_client *) TPM_VPRIV(chip); client = (struct i2c_client *) TPM_VPRIV(chip);
pin_infos = client->dev.platform_data;
status = _wait_for_interrupt_serirq_timeout(chip, timeout); status = _wait_for_interrupt_serirq_timeout(chip, timeout);
if (!status) { if (!status) {
...@@ -462,13 +457,11 @@ static irqreturn_t tpm_ioserirq_handler(int irq, void *dev_id) ...@@ -462,13 +457,11 @@ static irqreturn_t tpm_ioserirq_handler(int irq, void *dev_id)
static int tpm_stm_i2c_send(struct tpm_chip *chip, unsigned char *buf, static int tpm_stm_i2c_send(struct tpm_chip *chip, unsigned char *buf,
size_t len) size_t len)
{ {
u32 ordinal, u32 status,
status,
burstcnt = 0, i, size; burstcnt = 0, i, size;
int ret; int ret;
u8 data; u8 data;
struct i2c_client *client; struct i2c_client *client;
struct st33zp24_platform_data *pin_infos;
if (chip == NULL) if (chip == NULL)
return -EBUSY; return -EBUSY;
...@@ -476,9 +469,6 @@ static int tpm_stm_i2c_send(struct tpm_chip *chip, unsigned char *buf, ...@@ -476,9 +469,6 @@ static int tpm_stm_i2c_send(struct tpm_chip *chip, unsigned char *buf,
return -EBUSY; return -EBUSY;
client = (struct i2c_client *)TPM_VPRIV(chip); client = (struct i2c_client *)TPM_VPRIV(chip);
pin_infos = client->dev.platform_data;
ordinal = be32_to_cpu(*((__be32 *) (buf + 6)));
client->flags = 0; client->flags = 0;
...@@ -547,15 +537,9 @@ static int tpm_stm_i2c_recv(struct tpm_chip *chip, unsigned char *buf, ...@@ -547,15 +537,9 @@ static int tpm_stm_i2c_recv(struct tpm_chip *chip, unsigned char *buf,
int size = 0; int size = 0;
int expected; int expected;
struct i2c_client *client;
struct st33zp24_platform_data *pin_infos;
if (chip == NULL) if (chip == NULL)
return -EBUSY; return -EBUSY;
client = (struct i2c_client *)TPM_VPRIV(chip);
pin_infos = client->dev.platform_data;
if (count < TPM_HEADER_SIZE) { if (count < TPM_HEADER_SIZE) {
size = -EIO; size = -EIO;
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment