Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352872
b: refs/heads/master
c: 7333549
h: refs/heads/master
v: v3
  • Loading branch information
Peter Huewe authored and Kent Yoder committed Feb 5, 2013
1 parent e4edcb0 commit 17e09a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 07d721688b8464662393f3b3136defbbad52be75
refs/heads/master: 7333549bf4f345d338825dcd5b85400600e4cae7
4 changes: 1 addition & 3 deletions trunk/drivers/char/tpm/tpm_i2c_stm_st33.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,14 @@ enum tis_defaults {
static int write8_reg(struct i2c_client *client, u8 tpm_register,
u8 *tpm_data, u16 tpm_size)
{
int value = 0;
struct st33zp24_platform_data *pin_infos;

pin_infos = client->dev.platform_data;

pin_infos->tpm_i2c_buffer[0][0] = tpm_register;
memcpy(&pin_infos->tpm_i2c_buffer[0][1], tpm_data, tpm_size);
value = i2c_master_send(client, pin_infos->tpm_i2c_buffer[0],
return i2c_master_send(client, pin_infos->tpm_i2c_buffer[0],
tpm_size + 1);
return value;
} /* write8_reg() */

/*
Expand Down

0 comments on commit 17e09a0

Please sign in to comment.