self = dev->priv; 
self = netdev_priv(dev); 
static int smsc_ircc_net_ioctl(struct net_device *dev, struct ifreq *rq, int cmd){	struct if_irda_req *irq = (struct if_irda_req *) rq;	struct smsc_ircc_cb *self;	unsigned long flags;	int ret = 0;	IRDA_ASSERT(dev != NULL, return -1;);	self = dev->priv;	IRDA_ASSERT(self != NULL, return -1;);	IRDA_DEBUG(2, "%s(), %s, (cmd=0x%X)\n", __FUNCTION__, dev->name, cmd);	switch (cmd) {	case SIOCSBANDWIDTH: /* Set bandwidth */		if (!capable(CAP_NET_ADMIN))			ret = -EPERM;                else {			/* Make sure we are the only one touching			 * self->io.speed and the hardware - Jean II */			spin_lock_irqsave(&self->lock, flags);			smsc_ircc_change_speed(self, irq->ifr_baudrate);			spin_unlock_irqrestore(&self->lock, flags);		}		break;	case SIOCSMEDIABUSY: /* Set media busy */		if (!capable(CAP_NET_ADMIN)) {			ret = -EPERM;			break;		}		irda_device_set_media_busy(self->netdev, TRUE);		break;	case SIOCGRECEIVING: /* Check if we are receiving right now */		irq->ifr_receiving = smsc_ircc_is_receiving(self);		break;	#if 0	case SIOCSDTRRTS:		if (!capable(CAP_NET_ADMIN)) {			ret = -EPERM;			break;		}		smsc_ircc_sir_set_dtr_rts(dev, irq->ifr_dtr, irq->ifr_rts);		break;	#endif	default:		ret = -EOPNOTSUPP;	}	return ret;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/da0841a09531818000f816b76374abaef7e4b9b9/smsc-ircc2.c/clean/drivers/net/irda/smsc-ircc2.c