summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/ves1820.c
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-05-27 08:42:57 +0000
committerMichael Hunold <devnull@localhost>2003-05-27 08:42:57 +0000
commitf2cf1ceacd9087ad8fedb426cb15bfc7ba60c6fd (patch)
treeb88031bcda5cf147bcef635a8634ef65c230e472 /linux/drivers/media/dvb/frontends/ves1820.c
parentad0373531b89bbe79715e18bc36f7660d1f2b882 (diff)
downloadmediapointer-dvb-s2-f2cf1ceacd9087ad8fedb426cb15bfc7ba60c6fd.tar.gz
mediapointer-dvb-s2-f2cf1ceacd9087ad8fedb426cb15bfc7ba60c6fd.tar.bz2
Use C99 initializers.
Diffstat (limited to 'linux/drivers/media/dvb/frontends/ves1820.c')
-rw-r--r--linux/drivers/media/dvb/frontends/ves1820.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/linux/drivers/media/dvb/frontends/ves1820.c b/linux/drivers/media/dvb/frontends/ves1820.c
index 0d637f438..d5d1303be 100644
--- a/linux/drivers/media/dvb/frontends/ves1820.c
+++ b/linux/drivers/media/dvb/frontends/ves1820.c
@@ -112,7 +112,7 @@ int ves1820_writereg (struct dvb_frontend *fe, u8 reg, u8 data)
{
u8 addr = GET_DEMOD_ADDR(fe->data);
u8 buf[] = { 0x00, reg, data };
- struct i2c_msg msg = { addr: addr, flags: 0, buf: buf, len: 3 };
+ struct i2c_msg msg = { addr: addr, .flags = 0, .buf = buf, .len = 3 };
struct dvb_i2c_bus *i2c = fe->i2c;
int ret;
@@ -134,8 +134,8 @@ u8 ves1820_readreg (struct dvb_frontend *fe, u8 reg)
u8 b0 [] = { 0x00, reg };
u8 b1 [] = { 0 };
u8 addr = GET_DEMOD_ADDR(fe->data);
- struct i2c_msg msg [] = { { addr: addr, flags: 0, buf: b0, len: 2 },
- { addr: addr, flags: I2C_M_RD, buf: b1, len: 1 } };
+ struct i2c_msg msg [] = { { addr: addr, .flags = 0, .buf = b0, .len = 2 },
+ { addr: addr, .flags = I2C_M_RD, .buf = b1, .len = 1 } };
struct dvb_i2c_bus *i2c = fe->i2c;
int ret;
@@ -152,7 +152,7 @@ static
int tuner_write (struct dvb_i2c_bus *i2c, u8 addr, u8 data [4])
{
int ret;
- struct i2c_msg msg = { addr: addr, flags: 0, buf: data, len: 4 };
+ struct i2c_msg msg = { addr: addr, .flags = 0, .buf = data, .len = 4 };
ret = i2c->xfer (i2c, &msg, 1);
@@ -454,9 +454,9 @@ static
long probe_tuner (struct dvb_i2c_bus *i2c)
{
static const
- struct i2c_msg msg1 = { addr: 0x61, flags: 0, buf: NULL, len: 0 };
+ struct i2c_msg msg1 = { .addr = 0x61, .flags = 0, .buf = NULL, .len = 0 };
static const
- struct i2c_msg msg2 = { addr: 0x62, flags: 0, buf: NULL, len: 0 };
+ struct i2c_msg msg2 = { .addr = 0x62, .flags = 0, .buf = NULL, .len = 0 };
int type;
if (i2c->xfer(i2c, &msg1, 1) == 1) {
@@ -481,8 +481,8 @@ u8 read_pwm (struct dvb_i2c_bus *i2c)
{
u8 b = 0xff;
u8 pwm;
- struct i2c_msg msg [] = { { addr: 0x50, flags: 0, buf: &b, len: 1 },
- { addr: 0x50, flags: I2C_M_RD, buf: &pwm, len: 1 } };
+ struct i2c_msg msg [] = { { .addr = 0x50, .flags = 0, .buf = &b, .len = 1 },
+ { .addr = 0x50, .flags = I2C_M_RD, .buf = &pwm, .len = 1 } };
i2c->xfer (i2c, msg, 2);
@@ -500,8 +500,8 @@ long probe_demod_addr (struct dvb_i2c_bus *i2c)
{
u8 b [] = { 0x00, 0x1a };
u8 id;
- struct i2c_msg msg [] = { { addr: 0x08, flags: 0, buf: b, len: 2 },
- { addr: 0x08, flags: I2C_M_RD, buf: &id, len: 1 } };
+ struct i2c_msg msg [] = { { .addr = 0x08, .flags = 0, .buf = b, .len = 2 },
+ { .addr = 0x08, .flags = I2C_M_RD, .buf = &id, .len = 1 } };
if (i2c->xfer(i2c, msg, 2) == 2 && (id & 0xf0) == 0x70)
return msg[0].addr;