Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39584
b: refs/heads/master
c: aeb1104
h: refs/heads/master
v: v3
  • Loading branch information
Eiichiro Oiwa authored and Len Brown committed Oct 14, 2006
1 parent 28d64e8 commit 116b369
Show file tree
Hide file tree
Showing 35 changed files with 136 additions and 401 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ed75ded7dd3fdb647df4efefc5d11158e3d182be
refs/heads/master: aeb1104814e1177b865eec4f4b364602f5fcb6d1
2 changes: 1 addition & 1 deletion trunk/Documentation/video4linux/CARDLIST.cx88
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
50 -> NPG Tech Real TV FM Top 10 [14f1:0842]
51 -> WinFast DTV2000 H [107d:665e]
52 -> Geniatech DVB-S [14f1:0084]
53 -> Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T [0070:1404,0070:1400,0070:1401,0070:1402]
53 -> Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DVB-T [0070:1404]
54 -> Norwood Micro TV Tuner
55 -> Shenzhen Tungsten Ages Tech TE-DTV-250 / Swann OEM [c180:c980]
56 -> Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encoder [0070:9600,0070:9601,0070:9602]
13 changes: 6 additions & 7 deletions trunk/drivers/acpi/events/evrgnini.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,12 @@ acpi_ev_pci_config_region_setup(acpi_handle handle,
if (!
(ACPI_STRNCMP
(object_hID.value, PCI_ROOT_HID_STRING,
sizeof(PCI_ROOT_HID_STRING))
||
!(ACPI_STRNCMP
(object_hID.value,
PCI_EXPRESS_ROOT_HID_STRING,
sizeof(PCI_EXPRESS_ROOT_HID_STRING)))))
{
sizeof(PCI_ROOT_HID_STRING)))
||
!(ACPI_STRNCMP
(object_hID.value,
PCI_EXPRESS_ROOT_HID_STRING,
sizeof(PCI_EXPRESS_ROOT_HID_STRING)))) {

/* Install a handler for this PCI root bridge */

Expand Down
52 changes: 26 additions & 26 deletions trunk/drivers/char/serial167.c
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ shutdown(struct cyclades_port * info)
local_irq_save(flags);
if (info->xmit_buf){
free_page((unsigned long) info->xmit_buf);
info->xmit_buf = NULL;
info->xmit_buf = 0;
}

base_addr[CyCAR] = (u_char)channel;
Expand Down Expand Up @@ -1354,7 +1354,7 @@ cy_unthrottle(struct tty_struct * tty)

static int
get_serial_info(struct cyclades_port * info,
struct serial_struct __user * retinfo)
struct serial_struct * retinfo)
{
struct serial_struct tmp;

Expand All @@ -1376,7 +1376,7 @@ get_serial_info(struct cyclades_port * info,

static int
set_serial_info(struct cyclades_port * info,
struct serial_struct __user * new_info)
struct serial_struct * new_info)
{
struct serial_struct new_serial;
struct cyclades_port old_info;
Expand Down Expand Up @@ -1503,7 +1503,7 @@ send_break( struct cyclades_port * info, int duration)
} /* send_break */

static int
get_mon_info(struct cyclades_port * info, struct cyclades_monitor __user * mon)
get_mon_info(struct cyclades_port * info, struct cyclades_monitor * mon)
{

if (copy_to_user(mon, &info->mon, sizeof(struct cyclades_monitor)))
Expand All @@ -1516,7 +1516,7 @@ get_mon_info(struct cyclades_port * info, struct cyclades_monitor __user * mon)
}

static int
set_threshold(struct cyclades_port * info, unsigned long __user *arg)
set_threshold(struct cyclades_port * info, unsigned long *arg)
{
volatile unsigned char *base_addr = (u_char *)BASE_ADDR;
unsigned long value;
Expand All @@ -1533,7 +1533,7 @@ set_threshold(struct cyclades_port * info, unsigned long __user *arg)
}

static int
get_threshold(struct cyclades_port * info, unsigned long __user *value)
get_threshold(struct cyclades_port * info, unsigned long *value)
{
volatile unsigned char *base_addr = (u_char *)BASE_ADDR;
int channel;
Expand All @@ -1546,7 +1546,7 @@ get_threshold(struct cyclades_port * info, unsigned long __user *value)
}

static int
set_default_threshold(struct cyclades_port * info, unsigned long __user *arg)
set_default_threshold(struct cyclades_port * info, unsigned long *arg)
{
unsigned long value;

Expand All @@ -1558,13 +1558,13 @@ set_default_threshold(struct cyclades_port * info, unsigned long __user *arg)
}

static int
get_default_threshold(struct cyclades_port * info, unsigned long __user *value)
get_default_threshold(struct cyclades_port * info, unsigned long *value)
{
return put_user(info->default_threshold,value);
}

static int
set_timeout(struct cyclades_port * info, unsigned long __user *arg)
set_timeout(struct cyclades_port * info, unsigned long *arg)
{
volatile unsigned char *base_addr = (u_char *)BASE_ADDR;
int channel;
Expand All @@ -1581,7 +1581,7 @@ set_timeout(struct cyclades_port * info, unsigned long __user *arg)
}

static int
get_timeout(struct cyclades_port * info, unsigned long __user *value)
get_timeout(struct cyclades_port * info, unsigned long *value)
{
volatile unsigned char *base_addr = (u_char *)BASE_ADDR;
int channel;
Expand All @@ -1601,7 +1601,7 @@ set_default_timeout(struct cyclades_port * info, unsigned long value)
}

static int
get_default_timeout(struct cyclades_port * info, unsigned long __user *value)
get_default_timeout(struct cyclades_port * info, unsigned long *value)
{
return put_user(info->default_timeout,value);
}
Expand All @@ -1613,36 +1613,35 @@ cy_ioctl(struct tty_struct *tty, struct file * file,
unsigned long val;
struct cyclades_port * info = (struct cyclades_port *)tty->driver_data;
int ret_val = 0;
void __user *argp = (void __user *)arg;

#ifdef SERIAL_DEBUG_OTHER
printk("cy_ioctl %s, cmd = %x arg = %lx\n", tty->name, cmd, arg); /* */
#endif

switch (cmd) {
case CYGETMON:
ret_val = get_mon_info(info, argp);
ret_val = get_mon_info(info, (struct cyclades_monitor *)arg);
break;
case CYGETTHRESH:
ret_val = get_threshold(info, argp);
ret_val = get_threshold(info, (unsigned long *)arg);
break;
case CYSETTHRESH:
ret_val = set_threshold(info, argp);
ret_val = set_threshold(info, (unsigned long *)arg);
break;
case CYGETDEFTHRESH:
ret_val = get_default_threshold(info, argp);
ret_val = get_default_threshold(info, (unsigned long *)arg);
break;
case CYSETDEFTHRESH:
ret_val = set_default_threshold(info, argp);
ret_val = set_default_threshold(info, (unsigned long *)arg);
break;
case CYGETTIMEOUT:
ret_val = get_timeout(info, argp);
ret_val = get_timeout(info, (unsigned long *)arg);
break;
case CYSETTIMEOUT:
ret_val = set_timeout(info, argp);
ret_val = set_timeout(info, (unsigned long *)arg);
break;
case CYGETDEFTIMEOUT:
ret_val = get_default_timeout(info, argp);
ret_val = get_default_timeout(info, (unsigned long *)arg);
break;
case CYSETDEFTIMEOUT:
ret_val = set_default_timeout(info, (unsigned long)arg);
Expand All @@ -1665,20 +1664,21 @@ cy_ioctl(struct tty_struct *tty, struct file * file,

/* The following commands are incompletely implemented!!! */
case TIOCGSOFTCAR:
ret_val = put_user(C_CLOCAL(tty) ? 1 : 0, (unsigned long __user *) argp);
ret_val = put_user(C_CLOCAL(tty) ? 1 : 0, (unsigned long *) arg);
break;
case TIOCSSOFTCAR:
ret_val = get_user(val, (unsigned long __user *) argp);
ret_val = get_user(val, (unsigned long *) arg);
if (ret_val)
break;
tty->termios->c_cflag =
((tty->termios->c_cflag & ~CLOCAL) | (val ? CLOCAL : 0));
break;
case TIOCGSERIAL:
ret_val = get_serial_info(info, argp);
ret_val = get_serial_info(info, (struct serial_struct *) arg);
break;
case TIOCSSERIAL:
ret_val = set_serial_info(info, argp);
ret_val = set_serial_info(info,
(struct serial_struct *) arg);
break;
default:
ret_val = -ENOIOCTLCMD;
Expand Down Expand Up @@ -1773,7 +1773,7 @@ cy_close(struct tty_struct * tty, struct file * filp)
tty->driver->flush_buffer(tty);
tty_ldisc_flush(tty);
info->event = 0;
info->tty = NULL;
info->tty = 0;
if (info->blocked_open) {
if (info->close_delay) {
msleep_interruptible(jiffies_to_msecs(info->close_delay));
Expand Down Expand Up @@ -2250,7 +2250,7 @@ scrn[1] = '\0';
info->card = index;
info->line = port_num;
info->flags = STD_COM_FLAGS;
info->tty = NULL;
info->tty = 0;
info->xmit_fifo_size = 12;
info->cor1 = CyPARITY_NONE|Cy_8_BITS;
info->cor2 = CyETC;
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/input/misc/hp_sdc_rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static struct fasync_struct *hp_sdc_rtc_async_queue;

static DECLARE_WAIT_QUEUE_HEAD(hp_sdc_rtc_wait);

static ssize_t hp_sdc_rtc_read(struct file *file, char __user *buf,
static ssize_t hp_sdc_rtc_read(struct file *file, char *buf,
size_t count, loff_t *ppos);

static int hp_sdc_rtc_ioctl(struct inode *inode, struct file *file,
Expand Down Expand Up @@ -385,14 +385,14 @@ static int hp_sdc_rtc_set_i8042timer (struct timeval *setto, uint8_t setcmd)
return 0;
}

static ssize_t hp_sdc_rtc_read(struct file *file, char __user *buf,
static ssize_t hp_sdc_rtc_read(struct file *file, char *buf,
size_t count, loff_t *ppos) {
ssize_t retval;

if (count < sizeof(unsigned long))
return -EINVAL;

retval = put_user(68, (unsigned long __user *)buf);
retval = put_user(68, (unsigned long *)buf);
return retval;
}

Expand Down Expand Up @@ -696,7 +696,7 @@ static int __init hp_sdc_rtc_init(void)
if ((ret = hp_sdc_request_timer_irq(&hp_sdc_rtc_isr)))
return ret;
misc_register(&hp_sdc_rtc_dev);
create_proc_read_entry ("driver/rtc", 0, NULL,
create_proc_read_entry ("driver/rtc", 0, 0,
hp_sdc_rtc_read_proc, NULL);

printk(KERN_INFO "HP i8042 SDC + MSM-58321 RTC support loaded "
Expand Down
18 changes: 9 additions & 9 deletions trunk/drivers/input/serio/hil_mlc.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,23 +391,23 @@ static int hilse_operate(hil_mlc *mlc, int repoll) {
}

#define FUNC(funct, funct_arg, zero_rc, neg_rc, pos_rc) \
{ HILSE_FUNC, { .func = funct }, funct_arg, zero_rc, neg_rc, pos_rc },
{ HILSE_FUNC, { func: &funct }, funct_arg, zero_rc, neg_rc, pos_rc },
#define OUT(pack) \
{ HILSE_OUT, { .packet = pack }, 0, HILSEN_NEXT, HILSEN_DOZE, 0 },
{ HILSE_OUT, { packet: pack }, 0, HILSEN_NEXT, HILSEN_DOZE, 0 },
#define CTS \
{ HILSE_CTS, { .packet = 0 }, 0, HILSEN_NEXT | HILSEN_SCHED | HILSEN_BREAK, HILSEN_DOZE, 0 },
{ HILSE_CTS, { packet: 0 }, 0, HILSEN_NEXT | HILSEN_SCHED | HILSEN_BREAK, HILSEN_DOZE, 0 },
#define EXPECT(comp, to, got, got_wrong, timed_out) \
{ HILSE_EXPECT, { .packet = comp }, to, got, got_wrong, timed_out },
{ HILSE_EXPECT, { packet: comp }, to, got, got_wrong, timed_out },
#define EXPECT_LAST(comp, to, got, got_wrong, timed_out) \
{ HILSE_EXPECT_LAST, { .packet = comp }, to, got, got_wrong, timed_out },
{ HILSE_EXPECT_LAST, { packet: comp }, to, got, got_wrong, timed_out },
#define EXPECT_DISC(comp, to, got, got_wrong, timed_out) \
{ HILSE_EXPECT_DISC, { .packet = comp }, to, got, got_wrong, timed_out },
{ HILSE_EXPECT_DISC, { packet: comp }, to, got, got_wrong, timed_out },
#define IN(to, got, got_error, timed_out) \
{ HILSE_IN, { .packet = 0 }, to, got, got_error, timed_out },
{ HILSE_IN, { packet: 0 }, to, got, got_error, timed_out },
#define OUT_DISC(pack) \
{ HILSE_OUT_DISC, { .packet = pack }, 0, 0, 0, 0 },
{ HILSE_OUT_DISC, { packet: pack }, 0, 0, 0, 0 },
#define OUT_LAST(pack) \
{ HILSE_OUT_LAST, { .packet = pack }, 0, 0, 0, 0 },
{ HILSE_OUT_LAST, { packet: pack }, 0, 0, 0, 0 },

struct hilse_node hil_mlc_se[HILSEN_END] = {

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/input/serio/hp_sdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ static void hp_sdc_tasklet(unsigned long foo) {
* in tasklet/bh context.
*/
if (curr->act.irqhook)
curr->act.irqhook(0, NULL, 0, 0);
curr->act.irqhook(0, 0, 0, 0);
}
curr->actidx = curr->idx;
curr->idx++;
Expand Down Expand Up @@ -525,7 +525,7 @@ unsigned long hp_sdc_put(void) {
up(curr->act.semaphore);
}
else if (act & HP_SDC_ACT_CALLBACK) {
curr->act.irqhook(0,NULL,0,0);
curr->act.irqhook(0,0,0,0);
}
if (curr->idx >= curr->endidx) { /* This transaction is over. */
if (act & HP_SDC_ACT_DEALLOC) kfree(curr);
Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/media/dvb/bt8xx/dvb-bt8xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,10 +665,6 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type)
case BTTV_BOARD_TWINHAN_DST:
/* DST is not a frontend driver !!! */
state = (struct dst_state *) kmalloc(sizeof (struct dst_state), GFP_KERNEL);
if (!state) {
printk("dvb_bt8xx: No memory\n");
break;
}
/* Setup the Card */
state->config = &dst_config;
state->i2c = card->i2c_adapter;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/dvb/dvb-core/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ config DVB_CORE_ATTACH
allow the card drivers to only load the frontend modules
they require. This saves several KBytes of memory.

Note: You will need module-init-tools v3.2 or later for this feature.
Note: You will need moudule-init-tools v3.2 or later for this feature.

If unsure say Y.
11 changes: 2 additions & 9 deletions trunk/drivers/media/dvb/dvb-usb/dibusb-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ EXPORT_SYMBOL(dibusb_read_eeprom_byte);
// Config Adjacent channels Perf -cal22
static struct dibx000_agc_config dib3000p_mt2060_agc_config = {
.band_caps = BAND_VHF | BAND_UHF,
.setup = (1 << 8) | (5 << 5) | (1 << 4) | (1 << 3) | (0 << 2) | (2 << 0),
.setup = (0 << 15) | (0 << 14) | (1 << 13) | (1 << 12) | (29 << 0),

.agc1_max = 48497,
.agc1_min = 23593,
Expand All @@ -196,14 +196,10 @@ static struct dib3000mc_config stk3000p_dib3000p_config = {
.ln_adc_level = 0x1cc7,

.output_mpeg2_in_188_bytes = 1,

.agc_command1 = 1,
.agc_command2 = 1,
};

static struct dibx000_agc_config dib3000p_panasonic_agc_config = {
.band_caps = BAND_VHF | BAND_UHF,
.setup = (1 << 8) | (5 << 5) | (1 << 4) | (1 << 3) | (0 << 2) | (2 << 0),
.setup = (0 << 15) | (0 << 14) | (1 << 13) | (1 << 12) | (29 << 0),

.agc1_max = 56361,
.agc1_min = 22282,
Expand All @@ -230,9 +226,6 @@ static struct dib3000mc_config mod3000p_dib3000p_config = {
.ln_adc_level = 0x1cc7,

.output_mpeg2_in_188_bytes = 1,

.agc_command1 = 1,
.agc_command2 = 1,
};

int dibusb_dib3000mc_frontend_attach(struct dvb_usb_adapter *adap)
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/media/dvb/dvb-usb/dibusb.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@
struct dibusb_state {
struct dib_fe_xfer_ops ops;
int mt2060_present;
};

struct dibusb_device_state {
/* for RC5 remote control */
int old_toggle;
int last_repeat_count;
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/media/dvb/dvb-usb/nova-t-usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static int nova_t_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
u8 key[5],cmd[2] = { DIBUSB_REQ_POLL_REMOTE, 0x35 }, data,toggle,custom;
u16 raw;
int i;
struct dibusb_device_state *st = d->priv;
struct dibusb_state *st = d->priv;

dvb_usb_generic_rw(d,cmd,2,key,5,0);

Expand Down Expand Up @@ -184,7 +184,6 @@ static struct dvb_usb_device_properties nova_t_properties = {
.size_of_priv = sizeof(struct dibusb_state),
}
},
.size_of_priv = sizeof(struct dibusb_device_state),

.power_ctrl = dibusb2_0_power_ctrl,
.read_mac_address = nova_t_read_mac_address,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/dvb/frontends/dib3000mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ static int dib3000mc_init(struct dvb_frontend *demod)

/* agc */
dib3000mc_write_word(state, 36, state->cfg->max_time);
dib3000mc_write_word(state, 37, (state->cfg->agc_command1 << 13) | (state->cfg->agc_command2 << 12) | (0x1d << 0));
dib3000mc_write_word(state, 37, agc->setup);
dib3000mc_write_word(state, 38, state->cfg->pwm3_value);
dib3000mc_write_word(state, 39, state->cfg->ln_adc_level);

Expand Down
Loading

0 comments on commit 116b369

Please sign in to comment.