{
struct au0828_dev *dev = priv;
- dprintk(1, "%s()\n", __FUNCTION__);
+ dprintk(1, "%s()\n", __func__);
switch(dev->board) {
case AU0828_BOARD_HAUPPAUGE_HVR850:
}
else {
printk(KERN_ERR
- "%s(): Unknown command.\n", __FUNCTION__);
+ "%s(): Unknown command.\n", __func__);
return -EINVAL;
}
break;
case 72001: /* WinTV-HVR950q (Retail, IR, ATSC/QAM and basic analog video */
break;
default:
- printk("%s: warning: unknown hauppauge model #%d\n", __FUNCTION__, tv.model);
+ printk(KERN_WARNING "%s: warning: "
+ "unknown hauppauge model #%d\n", __func__, tv.model);
break;
}
- printk(KERN_INFO "%s: hauppauge eeprom: model=%d\n", __FUNCTION__, tv.model);
+ printk(KERN_INFO "%s: hauppauge eeprom: model=%d\n",
+ __func__, tv.model);
}
{
static u8 eeprom[256];
- dprintk(1, "%s()\n", __FUNCTION__);
+ dprintk(1, "%s()\n", __func__);
if (dev->i2c_rc == 0) {
dev->i2c_client.addr = 0xa0 >> 1;
*/
void au0828_gpio_setup(struct au0828_dev *dev)
{
- dprintk(1, "%s()\n", __FUNCTION__);
+ dprintk(1, "%s()\n", __func__);
switch(dev->board) {
case AU0828_BOARD_HAUPPAUGE_HVR850:
u32 au0828_readreg(struct au0828_dev *dev, u16 reg)
{
recv_control_msg(dev, CMD_REQUEST_IN, 0, reg, dev->ctrlmsg, 1);
- dprintk(8, "%s(0x%x) = 0x%x\n", __FUNCTION__, reg, dev->ctrlmsg[0]);
+ dprintk(8, "%s(0x%x) = 0x%x\n", __func__, reg, dev->ctrlmsg[0]);
return dev->ctrlmsg[0];
}
u32 au0828_writereg(struct au0828_dev *dev, u16 reg, u32 val)
{
- dprintk(8, "%s(0x%x, 0x%x)\n", __FUNCTION__, reg, val);
+ dprintk(8, "%s(0x%x, 0x%x)\n", __func__, reg, val);
return send_control_msg(dev, CMD_REQUEST_OUT, val, reg, dev->ctrlmsg, 0);
}
for (i = 0;i < sizeof(dev->ctrlmsg); i+=16)
dprintk(2,"%s() %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x "
"%02x %02x %02x %02x %02x %02x\n",
- __FUNCTION__,
+ __func__,
dev->ctrlmsg[i+0], dev->ctrlmsg[i+1],
dev->ctrlmsg[i+2], dev->ctrlmsg[i+3],
dev->ctrlmsg[i+4], dev->ctrlmsg[i+5],
if (status < 0) {
printk(KERN_ERR "%s() Failed sending control message, error %d.\n",
- __FUNCTION__,
- status);
+ __func__, status);
}
}
if (status < 0) {
printk(KERN_ERR "%s() Failed receiving control message, error %d.\n",
- __FUNCTION__,
- status);
+ __func__, status);
}
else
cmd_msg_dump(dev);
{
struct au0828_dev *dev = usb_get_intfdata(interface);
- dprintk(1,"%s()\n", __FUNCTION__);
+ dprintk(1, "%s()\n", __func__);
/* Digital TV */
au0828_dvb_unregister(dev);
if (ifnum != 0)
return -ENODEV;
- dprintk(1,"%s() vendor id 0x%x device id 0x%x ifnum:%d\n",
- __FUNCTION__,
+ dprintk(1,"%s() vendor id 0x%x device id 0x%x ifnum:%d\n", __func__,
le16_to_cpu(usbdev->descriptor.idVendor),
le16_to_cpu(usbdev->descriptor.idProduct),
ifnum);
dev = kzalloc(sizeof(*dev), GFP_KERNEL);
if (dev == NULL) {
- printk(KERN_ERR "%s() Unable to allocate memory\n", __FUNCTION__);
+ printk(KERN_ERR "%s() Unable to allocate memory\n", __func__);
return -ENOMEM;
}
int ret;
if(debug)
- printk(KERN_INFO "%s() Debugging is enabled\n", __FUNCTION__);
+ printk(KERN_INFO "%s() Debugging is enabled\n", __func__);
if(usb_debug) {
- printk(KERN_INFO "%s() USB Debugging is enabled\n", __FUNCTION__);
+ printk(KERN_INFO "%s() USB Debugging is enabled\n", __func__);
debug |= 2;
}
if(i2c_debug) {
- printk(KERN_INFO "%s() I2C Debugging is enabled\n", __FUNCTION__);
+ printk(KERN_INFO "%s() I2C Debugging is enabled\n", __func__);
debug |= 4;
}
if(bridge_debug) {
- printk(KERN_INFO "%s() Bridge Debugging is enabled\n", __FUNCTION__);
+ printk(KERN_INFO "%s() Bridge Debugging is enabled\n",
+ __func__);
debug |= 8;
}
struct au0828_dev *dev = purb->context;
int ptype = usb_pipetype(purb->pipe);
- dprintk(2, "%s()\n", __FUNCTION__);
+ dprintk(2, "%s()\n", __func__);
if (!dev)
return;
return;
if (ptype != PIPE_BULK) {
- printk(KERN_ERR "%s() Unsupported URB type %d\n", __FUNCTION__, ptype);
+ printk(KERN_ERR "%s() Unsupported URB type %d\n",
+ __func__, ptype);
return;
}
{
int i;
- dprintk(2, "%s()\n", __FUNCTION__);
+ dprintk(2, "%s()\n", __func__);
/* FIXME: Do we need to free the transfer_buffers? */
for (i = 0; i < URB_COUNT; i++) {
struct urb *purb;
int i, ret = -ENOMEM;
- dprintk(2, "%s()\n", __FUNCTION__);
+ dprintk(2, "%s()\n", __func__);
if (dev->urb_streaming) {
- dprintk(2, "%s: iso xfer already running!\n", __FUNCTION__);
+ dprintk(2, "%s: iso xfer already running!\n", __func__);
return 0;
}
ret = usb_submit_urb(dev->urbs[i], GFP_ATOMIC);
if (ret != 0) {
stop_urb_transfer(dev);
- printk("%s: failed urb submission, err = %d\n", __FUNCTION__, ret);
+ printk(KERN_ERR "%s: failed urb submission, "
+ "err = %d\n", __func__, ret);
return ret;
}
}
struct au0828_dvb *dvb = &dev->dvb;
int ret = 0;
- dprintk(1, "%s()\n", __FUNCTION__);
+ dprintk(1, "%s()\n", __func__);
if (!demux->dmx.frontend)
return -EINVAL;
struct au0828_dvb *dvb = &dev->dvb;
int ret = 0;
- dprintk(1, "%s()\n", __FUNCTION__);
+ dprintk(1, "%s()\n", __func__);
if (dvb) {
mutex_lock(&dvb->lock);
struct au0828_dvb *dvb = &dev->dvb;
int result;
- dprintk(1, "%s()\n", __FUNCTION__);
+ dprintk(1, "%s()\n", __func__);
/* register adapter */
result = dvb_register_adapter(&dvb->adapter, DRIVER_NAME, THIS_MODULE,
&dev->usbdev->dev, adapter_nr);
if (result < 0) {
- printk(KERN_ERROR "%s: dvb_register_adapter failed (errno = %d)\n",
- DRIVER_NAME, result);
+ printk(KERN_ERR "%s: dvb_register_adapter failed "
+ "(errno = %d)\n", DRIVER_NAME, result);
goto fail_adapter;
}
dvb->adapter.priv = dev;
/* register frontend */
result = dvb_register_frontend(&dvb->adapter, dvb->frontend);
if (result < 0) {
- printk(KERN_ERR "%s: dvb_register_frontend failed (errno = %d)\n",
- DRIVER_NAME, result);
+ printk(KERN_ERR "%s: dvb_register_frontend failed "
+ "(errno = %d)\n", DRIVER_NAME, result);
goto fail_frontend;
}
dvb->fe_hw.source = DMX_FRONTEND_0;
result = dvb->demux.dmx.add_frontend(&dvb->demux.dmx, &dvb->fe_hw);
if (result < 0) {
- printk(KERN_ERR "%s: add_frontend failed (DMX_FRONTEND_0, errno = %d)\n",
- DRIVER_NAME, result);
+ printk(KERN_ERR "%s: add_frontend failed "
+ "(DMX_FRONTEND_0, errno = %d)\n", DRIVER_NAME, result);
goto fail_fe_hw;
}
dvb->fe_mem.source = DMX_MEMORY_FE;
result = dvb->demux.dmx.add_frontend(&dvb->demux.dmx, &dvb->fe_mem);
if (result < 0) {
- printk(KERN_ERR "%s: add_frontend failed (DMX_MEMORY_FE, errno = %d)\n",
- DRIVER_NAME, result);
+ printk(KERN_ERR "%s: add_frontend failed "
+ "(DMX_MEMORY_FE, errno = %d)\n", DRIVER_NAME, result);
goto fail_fe_mem;
}
{
struct au0828_dvb *dvb = &dev->dvb;
- dprintk(1, "%s()\n", __FUNCTION__);
+ dprintk(1, "%s()\n", __func__);
if(dvb->frontend == NULL)
return;
struct au0828_dvb *dvb = &dev->dvb;
int ret;
- dprintk(1, "%s()\n", __FUNCTION__);
+ dprintk(1, "%s()\n", __func__);
/* init frontend */
switch (dev->board) {
}
break;
default:
- printk("The frontend of your DVB/ATSC card isn't supported yet\n");
+ printk(KERN_WARNING "The frontend of your DVB/ATSC card "
+ "isn't supported yet\n");
break;
}
if (NULL == dvb->frontend) {
- printk(KERN_ERR "%s() Frontend initialization failed\n", __FUNCTION__);
+ printk(KERN_ERR "%s() Frontend initialization failed\n",
+ __func__);
return -1;
}
int i, strobe = 0;
struct au0828_dev *dev = i2c_adap->algo_data;
- dprintk(4, "%s()\n", __FUNCTION__);
+ dprintk(4, "%s()\n", __func__);
au0828_write(dev, REG_2FF, 0x01);
au0828_write(dev, REG_202, 0x07);
struct au0828_dev *dev = i2c_adap->algo_data;
int i;
- dprintk(4, "%s()\n", __FUNCTION__);
+ dprintk(4, "%s()\n", __func__);
au0828_write(dev, REG_2FF, 0x01);
au0828_write(dev, REG_202, 0x07);
{
int i, retval = 0;
- dprintk(4, "%s(num = %d)\n", __FUNCTION__, num);
+ dprintk(4, "%s(num = %d)\n", __func__, num);
for (i = 0 ; i < num; i++) {
dprintk(4, "%s(num = %d) addr = 0x%02x len = 0x%x\n",
- __FUNCTION__, num, msgs[i].addr, msgs[i].len);
+ __func__, num, msgs[i].addr, msgs[i].len);
if (msgs[i].flags & I2C_M_RD) {
/* read */
retval = i2c_readbytes(i2c_adap, &msgs[i], 0);
/* init + register i2c algo-bit adapter */
int au0828_i2c_register(struct au0828_dev *dev)
{
- dprintk(1, "%s()\n", __FUNCTION__);
+ dprintk(1, "%s()\n", __func__);
memcpy(&dev->i2c_adap, &au0828_i2c_adap_template,
sizeof(dev->i2c_adap));