Overo用のspiドライバ
/dev/spi-ad
サブCPU基板からSPIでADデータを取得する。
Revisão | 0dedbe08e4e4130495f485e71d40cfc3bfe4413c (tree) |
---|---|
Hora | 2011-12-18 01:13:19 |
Autor | Naoya Takamura <ntaka206@user...> |
Commiter | Naoya Takamura |
Remove debug printk()
@@ -394,7 +394,7 @@ static int spike_file_open(struct inode *inode, struct file *filp) | ||
394 | 394 | { |
395 | 395 | int status = 0; |
396 | 396 | |
397 | - printk(KERN_INFO "spike_open: (%Lu)\n", filp->f_version); | |
397 | +// printk(KERN_INFO "spike_open: (%Lu)\n", filp->f_version); | |
398 | 398 | |
399 | 399 | if (down_interruptible(&spike_dev.fop_sem)) |
400 | 400 | return -ERESTARTSYS; |
@@ -425,7 +425,7 @@ static int spike_file_open(struct inode *inode, struct file *filp) | ||
425 | 425 | |
426 | 426 | static int spike_file_close(struct inode * inode, struct file * file) |
427 | 427 | { |
428 | - printk(KERN_INFO "spike_close: (%Lu)\n",file->f_version); | |
428 | +// printk(KERN_INFO "spike_close: (%Lu)\n",file->f_version); | |
429 | 429 | |
430 | 430 | ((FileInfo *)(file->private_data))->f_version = 0; |
431 | 431 | ((FileInfo *)(file->private_data))->sleep_mode = 0; |
@@ -469,7 +469,7 @@ static long spike_file_ioctl(struct file *file, unsigned int cmd, unsigned long | ||
469 | 469 | up(&spike_ctl.cmd_sem); |
470 | 470 | return -EFAULT; |
471 | 471 | } |
472 | -printk(KERN_INFO "spike_file_ioctl: CMD_TX_LEN %d\n", spike_ctl.cmd_len); | |
472 | +//printk(KERN_INFO "spike_file_ioctl: CMD_TX_LEN %d\n", spike_ctl.cmd_len); | |
473 | 473 | if (spike_ctl.cmd_len > SPI_CMD_MAX) spike_ctl.cmd_len = SPI_CMD_MAX; |
474 | 474 | up(&spike_ctl.cmd_sem); |
475 | 475 | return 0; |
@@ -482,7 +482,7 @@ printk(KERN_INFO "spike_file_ioctl: CMD_TX_LEN %d\n", spike_ctl.cmd_len); | ||
482 | 482 | up(&spike_ctl.cmd_sem); |
483 | 483 | return -EFAULT; |
484 | 484 | } |
485 | -printk(KERN_INFO "spike_file_ioctl: CMD_TX_SET %02X %02X %02X %02X\n", spike_ctl.cmd_buf[0], spike_ctl.cmd_buf[1], spike_ctl.cmd_buf[2], spike_ctl.cmd_buf[3]); | |
485 | +//printk(KERN_INFO "spike_file_ioctl: CMD_TX_SET %02X %02X %02X %02X\n", spike_ctl.cmd_buf[0], spike_ctl.cmd_buf[1], spike_ctl.cmd_buf[2], spike_ctl.cmd_buf[3]); | |
486 | 486 | up(&spike_ctl.cmd_sem); |
487 | 487 | return 0; |
488 | 488 | // SPI受信データ返す |