Skip to content

Commit

Permalink
i2c_mangle: fix msi -> mis typo
Browse files Browse the repository at this point in the history
  • Loading branch information
perexg committed Oct 12, 2018
1 parent 83d670b commit 6c7c2fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/i2c_mangle.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static void mangle(u8 *dst, struct i2c_msg *m, int i, int val, int shift, int ma
#define REG_SET3(b, b1, b2, b3) \
b[0] = b1, b[1] = b2, b[2] = b3

static void demod_set_pls_and_msi(struct i2c_adapter *adap, struct i2c_msg *src, int p)
static void demod_set_pls_and_mis(struct i2c_adapter *adap, struct i2c_msg *src, int p)
{
struct i2c_msg m[6];
u8 buf[6][3];
Expand Down Expand Up @@ -117,7 +117,7 @@ static void demod_set_pls_and_msi(struct i2c_adapter *adap, struct i2c_msg *src,
i2c_transfer_axe_dump(m, num);
r = i2c_transfer2(adap, m, num);
if (r < 0)
printk("i2c mangle demod pls and msi error! (%d)\n", r);
printk("i2c mangle demod pls and mis error! (%d)\n", r);
}

static void i2c_transfer_axe_mangle(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
Expand All @@ -139,7 +139,7 @@ static void i2c_transfer_axe_mangle(struct i2c_adapter *adap, struct i2c_msg *ms
if (m->flags == 0 && m->len == 3 &&
(m->buf[0] == 0xf2 || m->buf[0] == 0xf4) &&
m->buf[1] == 0x38 && m->buf[2] == 0x46)
demod_set_pls_and_msi(adap, m, m->buf[0] == 0xf2);
demod_set_pls_and_mis(adap, m, m->buf[0] == 0xf2);
}
}
}
Expand Down

0 comments on commit 6c7c2fb

Please sign in to comment.