r852.h (93db446a424cee9387b532995e6b516667079555) | r852.h (63fa37f0c512481bd942e84b596ad58e1d4c84e2) |
---|---|
1/* 2 * Copyright © 2009 - Maxim Levitsky 3 * driver for Ricoh xD readers 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 */ --- 130 unchanged lines hidden (view full) --- 139 /* interrupt handling */ 140 spinlock_t irqlock; /* IRQ protecting lock */ 141 int irq; /* irq num */ 142 /* misc */ 143 void *tmp_buffer; /* temporary buffer */ 144 uint8_t ctlreg; /* cached contents of control reg */ 145}; 146 | 1/* 2 * Copyright © 2009 - Maxim Levitsky 3 * driver for Ricoh xD readers 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 */ --- 130 unchanged lines hidden (view full) --- 139 /* interrupt handling */ 140 spinlock_t irqlock; /* IRQ protecting lock */ 141 int irq; /* irq num */ 142 /* misc */ 143 void *tmp_buffer; /* temporary buffer */ 144 uint8_t ctlreg; /* cached contents of control reg */ 145}; 146 |
147#define DRV_NAME "r852" 148 149 | |
150#define dbg(format, ...) \ 151 if (debug) \ | 147#define dbg(format, ...) \ 148 if (debug) \ |
152 printk(KERN_DEBUG DRV_NAME ": " format "\n", ## __VA_ARGS__) | 149 pr_debug(format "\n", ## __VA_ARGS__) |
153 154#define dbg_verbose(format, ...) \ 155 if (debug > 1) \ | 150 151#define dbg_verbose(format, ...) \ 152 if (debug > 1) \ |
156 printk(KERN_DEBUG DRV_NAME ": " format "\n", ## __VA_ARGS__) | 153 pr_debug(format "\n", ## __VA_ARGS__) |
157 158 159#define message(format, ...) \ | 154 155 156#define message(format, ...) \ |
160 printk(KERN_INFO DRV_NAME ": " format "\n", ## __VA_ARGS__) | 157 pr_info(format "\n", ## __VA_ARGS__) |