Commit 30799142 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] C99 initializer for driver/media/dvb/ttpci/budget-av.c

From: "Art Haas" <ahaas@airmail.net>

Here's a small patch changing the GNU-style initializers to C99
initializers.
parent 00593903
...@@ -68,8 +68,8 @@ static int i2c_readregs(struct dvb_i2c_bus *i2c, u8 id, u8 reg, u8 *buf, u8 len) ...@@ -68,8 +68,8 @@ static int i2c_readregs(struct dvb_i2c_bus *i2c, u8 id, u8 reg, u8 *buf, u8 len)
{ {
u8 mm1[] = { reg }; u8 mm1[] = { reg };
struct i2c_msg msgs[2] = { struct i2c_msg msgs[2] = {
{ addr: id/2, flags: 0, buf: mm1, len: 1 }, { .addr = id/2, .flags = 0, .buf = mm1, .len = 1 },
{ addr: id/2, flags: I2C_M_RD, buf: buf, len: len } { .addr = id/2, .flags = I2C_M_RD, .buf = buf, .len = len }
}; };
if (i2c->xfer(i2c, msgs, 2) != 2) if (i2c->xfer(i2c, msgs, 2) != 2)
......
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