Commit e12671cf authored by Steven Toth's avatar Steven Toth Committed by Mauro Carvalho Chehab

V4L/DVB (6886): xc5000: Cleanups of types, result codes etc

This translates much of the xceive coding style, adds
some result codes and generally cleans up whitespace
and function arguments.
Signed-off-by: default avatarSteven Toth <stoth@hauppauge.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent d1987d55
This diff is collapsed.
...@@ -29,8 +29,9 @@ struct i2c_adapter; ...@@ -29,8 +29,9 @@ struct i2c_adapter;
struct xc5000_config { struct xc5000_config {
u8 i2c_address; u8 i2c_address;
u32 if_frequency; u32 if_khz;
int (*request_firmware)(struct dvb_frontend* fe, const struct firmware **fw, char* name); int (*request_firmware)(struct dvb_frontend *fe,
const struct firmware **fw, char *name);
int (*tuner_reset)(struct dvb_frontend* fe); int (*tuner_reset)(struct dvb_frontend* fe);
}; };
......
...@@ -26,11 +26,10 @@ struct xc5000_priv { ...@@ -26,11 +26,10 @@ struct xc5000_priv {
struct xc5000_config *cfg; struct xc5000_config *cfg;
struct i2c_adapter *i2c; struct i2c_adapter *i2c;
u32 frequency; u32 freq_hz;
u32 bandwidth; u32 bandwidth;
u8 video_standard; u8 video_standard;
u8 rf_mode; u8 rf_mode;
u8 fwloaded; u8 fwloaded;
}; };
......
...@@ -146,10 +146,10 @@ static struct s5h1409_config hauppauge_hvr1500q_config = { ...@@ -146,10 +146,10 @@ static struct s5h1409_config hauppauge_hvr1500q_config = {
}; };
static struct xc5000_config hauppauge_hvr1500q_tunerconfig = { static struct xc5000_config hauppauge_hvr1500q_tunerconfig = {
.i2c_address = 0x61, .i2c_address = 0x61,
.if_frequency = 4570000, .if_khz = 5380,
.request_firmware = cx23885_request_firmware, .request_firmware = cx23885_request_firmware,
.tuner_reset = hauppauge_hvr1500q_tuner_reset .tuner_reset = hauppauge_hvr1500q_tuner_reset
}; };
static int dvb_register(struct cx23885_tsport *port) static int dvb_register(struct cx23885_tsport *port)
......
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