pci_addr_phys = 0;
if (my_dev->resource[0].flags & IORESOURCE_MEM) {
pci_addr_phys = my_dev->resource[0].start;
- printk(KERN_INFO DRIVER_NAME ": memory at 0x%08X \n",
+ printk(KERN_INFO DRIVER_NAME ": memory at 0x%08X\n",
(unsigned int)pci_addr_phys);
}
if (pci_addr_phys == 0) {
} tx;
};
-static struct file_operations display_fops = {
+static const struct file_operations display_fops = {
.owner = THIS_MODULE,
.open = &display_open,
.write = &vfd_write,
}
-static struct file_operations lirc_fops = {
+static const struct file_operations lirc_fops = {
.owner = THIS_MODULE,
.read = lirc_read,
.write = lirc_write,
return 0;
}
-static struct file_operations lirc_fops = {
+static const struct file_operations lirc_fops = {
.owner = THIS_MODULE,
.llseek = lirc_lseek,
.read = lirc_read,
};
/* VFD file operations */
-static struct file_operations vfd_fops = {
+static const struct file_operations vfd_fops = {
.owner = THIS_MODULE,
.open = &vfd_open,
.write = &vfd_write,
return 0;
}
-static struct file_operations lirc_fops = {
+static const struct file_operations lirc_fops = {
.owner = THIS_MODULE,
.write = lirc_write,
.unlocked_ioctl = lirc_ioctl,
wake_up_interruptible(&lirc_read_queue);
}
-static struct file_operations lirc_fops = {
+static const struct file_operations lirc_fops = {
.owner = THIS_MODULE,
.read = lirc_read,
.write = lirc_write,
return;
}
-static struct file_operations streamzap_fops = {
+static const struct file_operations streamzap_fops = {
.owner = THIS_MODULE,
.unlocked_ioctl = streamzap_ioctl,
.read = lirc_dev_fop_read,
* still have about 14 samples per pulse/space, i.e. we sample with 14
* times higher frequency than the signal frequency
*/
-const unsigned char map_table[] =
-{
+const unsigned char map_table[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
.id_table = ir_transceiver_id,
};
-static struct file_operations lirc_fops = {
+static const struct file_operations lirc_fops = {
.owner = THIS_MODULE,
.llseek = lseek,
.read = read,