summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/grundig_29504-491.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/grundig_29504-491.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/grundig_29504-491.c')
-rw-r--r--linux/drivers/media/dvb/frontends/grundig_29504-491.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/linux/drivers/media/dvb/frontends/grundig_29504-491.c b/linux/drivers/media/dvb/frontends/grundig_29504-491.c
index 313782339..88307b702 100644
--- a/linux/drivers/media/dvb/frontends/grundig_29504-491.c
+++ b/linux/drivers/media/dvb/frontends/grundig_29504-491.c
@@ -40,17 +40,17 @@ static int debug = 0;
static
struct dvb_frontend_info grundig_29504_491_info = {
- name: "Grundig 29504-491, (TDA8083 based)",
- type: FE_QPSK,
- frequency_min: 950000, /* FIXME: guessed! */
- frequency_max: 1400000, /* FIXME: guessed! */
- frequency_stepsize: 125, /* kHz for QPSK frontends */
-/* frequency_tolerance: ???,*/
- symbol_rate_min: 1000000, /* FIXME: guessed! */
- symbol_rate_max: 45000000, /* FIXME: guessed! */
-/* symbol_rate_tolerance: ???,*/
- notifier_delay: 0,
- caps: FE_CAN_INVERSION_AUTO |
+ .name = "Grundig 29504-491, (TDA8083 based)",
+ .type = FE_QPSK,
+ .frequency_min = 950000, /* FIXME: guessed! */
+ .frequency_max = 1400000, /* FIXME: guessed! */
+ .frequency_stepsize = 125, /* kHz for QPSK frontends */
+/* .frequency_tolerance = ???,*/
+ .symbol_rate_min = 1000000, /* FIXME: guessed! */
+ .symbol_rate_max = 45000000, /* FIXME: guessed! */
+/* .symbol_rate_tolerance = ???,*/
+ .notifier_delay = 0,
+ .caps = FE_CAN_INVERSION_AUTO |
FE_CAN_FEC_1_2 | FE_CAN_FEC_2_3 | FE_CAN_FEC_3_4 |
FE_CAN_FEC_4_5 | FE_CAN_FEC_5_6 | FE_CAN_FEC_6_7 |
FE_CAN_FEC_7_8 | FE_CAN_FEC_8_9 | FE_CAN_FEC_AUTO |
@@ -77,7 +77,7 @@ int tda8083_writereg (struct dvb_i2c_bus *i2c, u8 reg, u8 data)
{
int ret;
u8 buf [] = { reg, data };
- struct i2c_msg msg = { addr: 0x68, flags: 0, buf: buf, len: 2 };
+ struct i2c_msg msg = { .addr = 0x68, .flags = 0, .buf = buf, .len = 2 };
ret = i2c->xfer (i2c, &msg, 1);
@@ -93,8 +93,8 @@ static
int tda8083_readregs (struct dvb_i2c_bus *i2c, u8 reg1, u8 *b, u8 len)
{
int ret;
- struct i2c_msg msg [] = { { addr: 0x68, flags: 0, buf: &reg1, len: 1 },
- { addr: 0x68, flags: I2C_M_RD, buf: b, len: len } };
+ struct i2c_msg msg [] = { { .addr = 0x68, .flags = 0, .buf = &reg1, .len = 1 },
+ { .addr = 0x68, .flags = I2C_M_RD, .buf = b, .len = len } };
ret = i2c->xfer (i2c, msg, 2);
@@ -121,7 +121,7 @@ static
int tsa5522_write (struct dvb_i2c_bus *i2c, u8 data [4])
{
int ret;
- struct i2c_msg msg = { addr: 0x61, flags: 0, buf: data, len: 4 };
+ struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = 4 };
ret = i2c->xfer (i2c, &msg, 1);