aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2018-02-12 07:27:50 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-02-14 14:15:46 -0500
commit1f17f684d9ea3aafccbb5d727b19c5ffafb07e75 (patch)
tree0ce6f64e989c47c5c941801e718d54243a54d99a
parent50078a903830796a8a47f26edc4cc10b9061711f (diff)
media: rc: remove IR_dprintk() from rc-core
Use dev_dbg() rather than custom debug function. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r--drivers/media/rc/lirc_dev.c10
-rw-r--r--drivers/media/rc/rc-ir-raw.c6
-rw-r--r--drivers/media/rc/rc-main.c91
-rw-r--r--include/media/rc-core.h7
4 files changed, 53 insertions, 61 deletions
diff --git a/drivers/media/rc/lirc_dev.c b/drivers/media/rc/lirc_dev.c
index cc863044c880..b01725296b46 100644
--- a/drivers/media/rc/lirc_dev.c
+++ b/drivers/media/rc/lirc_dev.c
@@ -60,12 +60,12 @@ void ir_lirc_raw_event(struct rc_dev *dev, struct ir_raw_event ev)
60 * space with the maximum time value. 60 * space with the maximum time value.
61 */ 61 */
62 sample = LIRC_SPACE(LIRC_VALUE_MASK); 62 sample = LIRC_SPACE(LIRC_VALUE_MASK);
63 IR_dprintk(2, "delivering reset sync space to lirc_dev\n"); 63 dev_dbg(&dev->dev, "delivering reset sync space to lirc_dev\n");
64 64
65 /* Carrier reports */ 65 /* Carrier reports */
66 } else if (ev.carrier_report) { 66 } else if (ev.carrier_report) {
67 sample = LIRC_FREQUENCY(ev.carrier); 67 sample = LIRC_FREQUENCY(ev.carrier);
68 IR_dprintk(2, "carrier report (freq: %d)\n", sample); 68 dev_dbg(&dev->dev, "carrier report (freq: %d)\n", sample);
69 69
70 /* Packet end */ 70 /* Packet end */
71 } else if (ev.timeout) { 71 } else if (ev.timeout) {
@@ -77,7 +77,7 @@ void ir_lirc_raw_event(struct rc_dev *dev, struct ir_raw_event ev)
77 dev->gap_duration = ev.duration; 77 dev->gap_duration = ev.duration;
78 78
79 sample = LIRC_TIMEOUT(ev.duration / 1000); 79 sample = LIRC_TIMEOUT(ev.duration / 1000);
80 IR_dprintk(2, "timeout report (duration: %d)\n", sample); 80 dev_dbg(&dev->dev, "timeout report (duration: %d)\n", sample);
81 81
82 /* Normal sample */ 82 /* Normal sample */
83 } else { 83 } else {
@@ -100,8 +100,8 @@ void ir_lirc_raw_event(struct rc_dev *dev, struct ir_raw_event ev)
100 100
101 sample = ev.pulse ? LIRC_PULSE(ev.duration / 1000) : 101 sample = ev.pulse ? LIRC_PULSE(ev.duration / 1000) :
102 LIRC_SPACE(ev.duration / 1000); 102 LIRC_SPACE(ev.duration / 1000);
103 IR_dprintk(2, "delivering %uus %s to lirc_dev\n", 103 dev_dbg(&dev->dev, "delivering %uus %s to lirc_dev\n",
104 TO_US(ev.duration), TO_STR(ev.pulse)); 104 TO_US(ev.duration), TO_STR(ev.pulse));
105 } 105 }
106 106
107 spin_lock_irqsave(&dev->lirc_fh_lock, flags); 107 spin_lock_irqsave(&dev->lirc_fh_lock, flags);
diff --git a/drivers/media/rc/rc-ir-raw.c b/drivers/media/rc/rc-ir-raw.c
index 18504870b9f0..2790a0d268fd 100644
--- a/drivers/media/rc/rc-ir-raw.c
+++ b/drivers/media/rc/rc-ir-raw.c
@@ -65,8 +65,8 @@ int ir_raw_event_store(struct rc_dev *dev, struct ir_raw_event *ev)
65 if (!dev->raw) 65 if (!dev->raw)
66 return -EINVAL; 66 return -EINVAL;
67 67
68 IR_dprintk(2, "sample: (%05dus %s)\n", 68 dev_dbg(&dev->dev, "sample: (%05dus %s)\n",
69 TO_US(ev->duration), TO_STR(ev->pulse)); 69 TO_US(ev->duration), TO_STR(ev->pulse));
70 70
71 if (!kfifo_put(&dev->raw->kfifo, *ev)) { 71 if (!kfifo_put(&dev->raw->kfifo, *ev)) {
72 dev_err(&dev->dev, "IR event FIFO is full!\n"); 72 dev_err(&dev->dev, "IR event FIFO is full!\n");
@@ -168,7 +168,7 @@ void ir_raw_event_set_idle(struct rc_dev *dev, bool idle)
168 if (!dev->raw) 168 if (!dev->raw)
169 return; 169 return;
170 170
171 IR_dprintk(2, "%s idle mode\n", idle ? "enter" : "leave"); 171 dev_dbg(&dev->dev, "%s idle mode\n", idle ? "enter" : "leave");
172 172
173 if (idle) { 173 if (idle) {
174 dev->raw->this_ev.timeout = true; 174 dev->raw->this_ev.timeout = true;
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c
index 1db8d38fed7c..4a952108ba1e 100644
--- a/drivers/media/rc/rc-main.c
+++ b/drivers/media/rc/rc-main.c
@@ -156,6 +156,7 @@ static struct rc_map_list empty_map = {
156 156
157/** 157/**
158 * ir_create_table() - initializes a scancode table 158 * ir_create_table() - initializes a scancode table
159 * @dev: the rc_dev device
159 * @rc_map: the rc_map to initialize 160 * @rc_map: the rc_map to initialize
160 * @name: name to assign to the table 161 * @name: name to assign to the table
161 * @rc_proto: ir type to assign to the new table 162 * @rc_proto: ir type to assign to the new table
@@ -166,7 +167,7 @@ static struct rc_map_list empty_map = {
166 * 167 *
167 * return: zero on success or a negative error code 168 * return: zero on success or a negative error code
168 */ 169 */
169static int ir_create_table(struct rc_map *rc_map, 170static int ir_create_table(struct rc_dev *dev, struct rc_map *rc_map,
170 const char *name, u64 rc_proto, size_t size) 171 const char *name, u64 rc_proto, size_t size)
171{ 172{
172 rc_map->name = kstrdup(name, GFP_KERNEL); 173 rc_map->name = kstrdup(name, GFP_KERNEL);
@@ -182,8 +183,8 @@ static int ir_create_table(struct rc_map *rc_map,
182 return -ENOMEM; 183 return -ENOMEM;
183 } 184 }
184 185
185 IR_dprintk(1, "Allocated space for %u keycode entries (%u bytes)\n", 186 dev_dbg(&dev->dev, "Allocated space for %u keycode entries (%u bytes)\n",
186 rc_map->size, rc_map->alloc); 187 rc_map->size, rc_map->alloc);
187 return 0; 188 return 0;
188} 189}
189 190
@@ -205,6 +206,7 @@ static void ir_free_table(struct rc_map *rc_map)
205 206
206/** 207/**
207 * ir_resize_table() - resizes a scancode table if necessary 208 * ir_resize_table() - resizes a scancode table if necessary
209 * @dev: the rc_dev device
208 * @rc_map: the rc_map to resize 210 * @rc_map: the rc_map to resize
209 * @gfp_flags: gfp flags to use when allocating memory 211 * @gfp_flags: gfp flags to use when allocating memory
210 * 212 *
@@ -213,7 +215,8 @@ static void ir_free_table(struct rc_map *rc_map)
213 * 215 *
214 * return: zero on success or a negative error code 216 * return: zero on success or a negative error code
215 */ 217 */
216static int ir_resize_table(struct rc_map *rc_map, gfp_t gfp_flags) 218static int ir_resize_table(struct rc_dev *dev, struct rc_map *rc_map,
219 gfp_t gfp_flags)
217{ 220{
218 unsigned int oldalloc = rc_map->alloc; 221 unsigned int oldalloc = rc_map->alloc;
219 unsigned int newalloc = oldalloc; 222 unsigned int newalloc = oldalloc;
@@ -226,23 +229,21 @@ static int ir_resize_table(struct rc_map *rc_map, gfp_t gfp_flags)
226 return -ENOMEM; 229 return -ENOMEM;
227 230
228 newalloc *= 2; 231 newalloc *= 2;
229 IR_dprintk(1, "Growing table to %u bytes\n", newalloc); 232 dev_dbg(&dev->dev, "Growing table to %u bytes\n", newalloc);
230 } 233 }
231 234
232 if ((rc_map->len * 3 < rc_map->size) && (oldalloc > IR_TAB_MIN_SIZE)) { 235 if ((rc_map->len * 3 < rc_map->size) && (oldalloc > IR_TAB_MIN_SIZE)) {
233 /* Less than 1/3 of entries in use -> shrink keytable */ 236 /* Less than 1/3 of entries in use -> shrink keytable */
234 newalloc /= 2; 237 newalloc /= 2;
235 IR_dprintk(1, "Shrinking table to %u bytes\n", newalloc); 238 dev_dbg(&dev->dev, "Shrinking table to %u bytes\n", newalloc);
236 } 239 }
237 240
238 if (newalloc == oldalloc) 241 if (newalloc == oldalloc)
239 return 0; 242 return 0;
240 243
241 newscan = kmalloc(newalloc, gfp_flags); 244 newscan = kmalloc(newalloc, gfp_flags);
242 if (!newscan) { 245 if (!newscan)
243 IR_dprintk(1, "Failed to kmalloc %u bytes\n", newalloc);
244 return -ENOMEM; 246 return -ENOMEM;
245 }
246 247
247 memcpy(newscan, rc_map->scan, rc_map->len * sizeof(struct rc_map_table)); 248 memcpy(newscan, rc_map->scan, rc_map->len * sizeof(struct rc_map_table));
248 rc_map->scan = newscan; 249 rc_map->scan = newscan;
@@ -275,16 +276,16 @@ static unsigned int ir_update_mapping(struct rc_dev *dev,
275 276
276 /* Did the user wish to remove the mapping? */ 277 /* Did the user wish to remove the mapping? */
277 if (new_keycode == KEY_RESERVED || new_keycode == KEY_UNKNOWN) { 278 if (new_keycode == KEY_RESERVED || new_keycode == KEY_UNKNOWN) {
278 IR_dprintk(1, "#%d: Deleting scan 0x%04x\n", 279 dev_dbg(&dev->dev, "#%d: Deleting scan 0x%04x\n",
279 index, rc_map->scan[index].scancode); 280 index, rc_map->scan[index].scancode);
280 rc_map->len--; 281 rc_map->len--;
281 memmove(&rc_map->scan[index], &rc_map->scan[index+ 1], 282 memmove(&rc_map->scan[index], &rc_map->scan[index+ 1],
282 (rc_map->len - index) * sizeof(struct rc_map_table)); 283 (rc_map->len - index) * sizeof(struct rc_map_table));
283 } else { 284 } else {
284 IR_dprintk(1, "#%d: %s scan 0x%04x with key 0x%04x\n", 285 dev_dbg(&dev->dev, "#%d: %s scan 0x%04x with key 0x%04x\n",
285 index, 286 index,
286 old_keycode == KEY_RESERVED ? "New" : "Replacing", 287 old_keycode == KEY_RESERVED ? "New" : "Replacing",
287 rc_map->scan[index].scancode, new_keycode); 288 rc_map->scan[index].scancode, new_keycode);
288 rc_map->scan[index].keycode = new_keycode; 289 rc_map->scan[index].keycode = new_keycode;
289 __set_bit(new_keycode, dev->input_dev->keybit); 290 __set_bit(new_keycode, dev->input_dev->keybit);
290 } 291 }
@@ -301,7 +302,7 @@ static unsigned int ir_update_mapping(struct rc_dev *dev,
301 } 302 }
302 303
303 /* Possibly shrink the keytable, failure is not a problem */ 304 /* Possibly shrink the keytable, failure is not a problem */
304 ir_resize_table(rc_map, GFP_ATOMIC); 305 ir_resize_table(dev, rc_map, GFP_ATOMIC);
305 } 306 }
306 307
307 return old_keycode; 308 return old_keycode;
@@ -352,7 +353,7 @@ static unsigned int ir_establish_scancode(struct rc_dev *dev,
352 353
353 /* No previous mapping found, we might need to grow the table */ 354 /* No previous mapping found, we might need to grow the table */
354 if (rc_map->size == rc_map->len) { 355 if (rc_map->size == rc_map->len) {
355 if (!resize || ir_resize_table(rc_map, GFP_ATOMIC)) 356 if (!resize || ir_resize_table(dev, rc_map, GFP_ATOMIC))
356 return -1U; 357 return -1U;
357 } 358 }
358 359
@@ -431,8 +432,8 @@ static int ir_setkeytable(struct rc_dev *dev,
431 unsigned int i, index; 432 unsigned int i, index;
432 int rc; 433 int rc;
433 434
434 rc = ir_create_table(rc_map, from->name, 435 rc = ir_create_table(dev, rc_map, from->name, from->rc_proto,
435 from->rc_proto, from->size); 436 from->size);
436 if (rc) 437 if (rc)
437 return rc; 438 return rc;
438 439
@@ -576,8 +577,8 @@ u32 rc_g_keycode_from_table(struct rc_dev *dev, u32 scancode)
576 spin_unlock_irqrestore(&rc_map->lock, flags); 577 spin_unlock_irqrestore(&rc_map->lock, flags);
577 578
578 if (keycode != KEY_RESERVED) 579 if (keycode != KEY_RESERVED)
579 IR_dprintk(1, "%s: scancode 0x%04x keycode 0x%02x\n", 580 dev_dbg(&dev->dev, "%s: scancode 0x%04x keycode 0x%02x\n",
580 dev->device_name, scancode, keycode); 581 dev->device_name, scancode, keycode);
581 582
582 return keycode; 583 return keycode;
583} 584}
@@ -596,7 +597,7 @@ static void ir_do_keyup(struct rc_dev *dev, bool sync)
596 if (!dev->keypressed) 597 if (!dev->keypressed)
597 return; 598 return;
598 599
599 IR_dprintk(1, "keyup key 0x%04x\n", dev->last_keycode); 600 dev_dbg(&dev->dev, "keyup key 0x%04x\n", dev->last_keycode);
600 del_timer(&dev->timer_repeat); 601 del_timer(&dev->timer_repeat);
601 input_report_key(dev->input_dev, dev->last_keycode, 0); 602 input_report_key(dev->input_dev, dev->last_keycode, 0);
602 led_trigger_event(led_feedback, LED_OFF); 603 led_trigger_event(led_feedback, LED_OFF);
@@ -751,8 +752,8 @@ static void ir_do_keydown(struct rc_dev *dev, enum rc_proto protocol,
751 /* Register a keypress */ 752 /* Register a keypress */
752 dev->keypressed = true; 753 dev->keypressed = true;
753 754
754 IR_dprintk(1, "%s: key down event, key 0x%04x, protocol 0x%04x, scancode 0x%08x\n", 755 dev_dbg(&dev->dev, "%s: key down event, key 0x%04x, protocol 0x%04x, scancode 0x%08x\n",
755 dev->device_name, keycode, protocol, scancode); 756 dev->device_name, keycode, protocol, scancode);
756 input_report_key(dev->input_dev, keycode, 1); 757 input_report_key(dev->input_dev, keycode, 1);
757 758
758 led_trigger_event(led_feedback, LED_FULL); 759 led_trigger_event(led_feedback, LED_FULL);
@@ -1056,8 +1057,8 @@ static ssize_t show_protocols(struct device *device,
1056 1057
1057 mutex_unlock(&dev->lock); 1058 mutex_unlock(&dev->lock);
1058 1059
1059 IR_dprintk(1, "%s: allowed - 0x%llx, enabled - 0x%llx\n", 1060 dev_dbg(&dev->dev, "%s: allowed - 0x%llx, enabled - 0x%llx\n",
1060 __func__, (long long)allowed, (long long)enabled); 1061 __func__, (long long)allowed, (long long)enabled);
1061 1062
1062 for (i = 0; i < ARRAY_SIZE(proto_names); i++) { 1063 for (i = 0; i < ARRAY_SIZE(proto_names); i++) {
1063 if (allowed & enabled & proto_names[i].type) 1064 if (allowed & enabled & proto_names[i].type)
@@ -1083,6 +1084,7 @@ static ssize_t show_protocols(struct device *device,
1083 1084
1084/** 1085/**
1085 * parse_protocol_change() - parses a protocol change request 1086 * parse_protocol_change() - parses a protocol change request
1087 * @dev: rc_dev device
1086 * @protocols: pointer to the bitmask of current protocols 1088 * @protocols: pointer to the bitmask of current protocols
1087 * @buf: pointer to the buffer with a list of changes 1089 * @buf: pointer to the buffer with a list of changes
1088 * 1090 *
@@ -1092,7 +1094,8 @@ static ssize_t show_protocols(struct device *device,
1092 * Writing "none" will disable all protocols. 1094 * Writing "none" will disable all protocols.
1093 * Returns the number of changes performed or a negative error code. 1095 * Returns the number of changes performed or a negative error code.
1094 */ 1096 */
1095static int parse_protocol_change(u64 *protocols, const char *buf) 1097static int parse_protocol_change(struct rc_dev *dev, u64 *protocols,
1098 const char *buf)
1096{ 1099{
1097 const char *tmp; 1100 const char *tmp;
1098 unsigned count = 0; 1101 unsigned count = 0;
@@ -1128,7 +1131,8 @@ static int parse_protocol_change(u64 *protocols, const char *buf)
1128 if (!strcasecmp(tmp, "lirc")) 1131 if (!strcasecmp(tmp, "lirc"))
1129 mask = 0; 1132 mask = 0;
1130 else { 1133 else {
1131 IR_dprintk(1, "Unknown protocol: '%s'\n", tmp); 1134 dev_dbg(&dev->dev, "Unknown protocol: '%s'\n",
1135 tmp);
1132 return -EINVAL; 1136 return -EINVAL;
1133 } 1137 }
1134 } 1138 }
@@ -1144,7 +1148,7 @@ static int parse_protocol_change(u64 *protocols, const char *buf)
1144 } 1148 }
1145 1149
1146 if (!count) { 1150 if (!count) {
1147 IR_dprintk(1, "Protocol not specified\n"); 1151 dev_dbg(&dev->dev, "Protocol not specified\n");
1148 return -EINVAL; 1152 return -EINVAL;
1149 } 1153 }
1150 1154
@@ -1217,12 +1221,12 @@ static ssize_t store_protocols(struct device *device,
1217 u64 old_protocols, new_protocols; 1221 u64 old_protocols, new_protocols;
1218 ssize_t rc; 1222 ssize_t rc;
1219 1223
1220 IR_dprintk(1, "Normal protocol change requested\n"); 1224 dev_dbg(&dev->dev, "Normal protocol change requested\n");
1221 current_protocols = &dev->enabled_protocols; 1225 current_protocols = &dev->enabled_protocols;
1222 filter = &dev->scancode_filter; 1226 filter = &dev->scancode_filter;
1223 1227
1224 if (!dev->change_protocol) { 1228 if (!dev->change_protocol) {
1225 IR_dprintk(1, "Protocol switching not supported\n"); 1229 dev_dbg(&dev->dev, "Protocol switching not supported\n");
1226 return -EINVAL; 1230 return -EINVAL;
1227 } 1231 }
1228 1232
@@ -1230,14 +1234,14 @@ static ssize_t store_protocols(struct device *device,
1230 1234
1231 old_protocols = *current_protocols; 1235 old_protocols = *current_protocols;
1232 new_protocols = old_protocols; 1236 new_protocols = old_protocols;
1233 rc = parse_protocol_change(&new_protocols, buf); 1237 rc = parse_protocol_change(dev, &new_protocols, buf);
1234 if (rc < 0) 1238 if (rc < 0)
1235 goto out; 1239 goto out;
1236 1240
1237 rc = dev->change_protocol(dev, &new_protocols); 1241 rc = dev->change_protocol(dev, &new_protocols);
1238 if (rc < 0) { 1242 if (rc < 0) {
1239 IR_dprintk(1, "Error setting protocols to 0x%llx\n", 1243 dev_dbg(&dev->dev, "Error setting protocols to 0x%llx\n",
1240 (long long)new_protocols); 1244 (long long)new_protocols);
1241 goto out; 1245 goto out;
1242 } 1246 }
1243 1247
@@ -1246,8 +1250,8 @@ static ssize_t store_protocols(struct device *device,
1246 1250
1247 if (new_protocols != old_protocols) { 1251 if (new_protocols != old_protocols) {
1248 *current_protocols = new_protocols; 1252 *current_protocols = new_protocols;
1249 IR_dprintk(1, "Protocols changed to 0x%llx\n", 1253 dev_dbg(&dev->dev, "Protocols changed to 0x%llx\n",
1250 (long long)new_protocols); 1254 (long long)new_protocols);
1251 } 1255 }
1252 1256
1253 /* 1257 /*
@@ -1435,8 +1439,8 @@ static ssize_t show_wakeup_protocols(struct device *device,
1435 1439
1436 mutex_unlock(&dev->lock); 1440 mutex_unlock(&dev->lock);
1437 1441
1438 IR_dprintk(1, "%s: allowed - 0x%llx, enabled - %d\n", 1442 dev_dbg(&dev->dev, "%s: allowed - 0x%llx, enabled - %d\n",
1439 __func__, (long long)allowed, enabled); 1443 __func__, (long long)allowed, enabled);
1440 1444
1441 for (i = 0; i < ARRAY_SIZE(protocols); i++) { 1445 for (i = 0; i < ARRAY_SIZE(protocols); i++) {
1442 if (allowed & (1ULL << i)) { 1446 if (allowed & (1ULL << i)) {
@@ -1511,7 +1515,7 @@ static ssize_t store_wakeup_protocols(struct device *device,
1511 1515
1512 if (dev->wakeup_protocol != protocol) { 1516 if (dev->wakeup_protocol != protocol) {
1513 dev->wakeup_protocol = protocol; 1517 dev->wakeup_protocol = protocol;
1514 IR_dprintk(1, "Wakeup protocol changed to %d\n", protocol); 1518 dev_dbg(&dev->dev, "Wakeup protocol changed to %d\n", protocol);
1515 1519
1516 if (protocol == RC_PROTO_RC6_MCE) 1520 if (protocol == RC_PROTO_RC6_MCE)
1517 dev->scancode_wakeup_filter.data = 0x800f0000; 1521 dev->scancode_wakeup_filter.data = 0x800f0000;
@@ -1874,9 +1878,8 @@ int rc_register_device(struct rc_dev *dev)
1874 1878
1875 dev->registered = true; 1879 dev->registered = true;
1876 1880
1877 IR_dprintk(1, "Registered rc%u (driver: %s)\n", 1881 dev_dbg(&dev->dev, "Registered rc%u (driver: %s)\n", dev->minor,
1878 dev->minor, 1882 dev->driver_name ? dev->driver_name : "unknown");
1879 dev->driver_name ? dev->driver_name : "unknown");
1880 1883
1881 return 0; 1884 return 0;
1882 1885
@@ -1994,9 +1997,5 @@ static void __exit rc_core_exit(void)
1994subsys_initcall(rc_core_init); 1997subsys_initcall(rc_core_init);
1995module_exit(rc_core_exit); 1998module_exit(rc_core_exit);
1996 1999
1997int rc_core_debug; /* ir_debug level (0,1,2) */
1998EXPORT_SYMBOL_GPL(rc_core_debug);
1999module_param_named(debug, rc_core_debug, int, 0644);
2000
2001MODULE_AUTHOR("Mauro Carvalho Chehab"); 2000MODULE_AUTHOR("Mauro Carvalho Chehab");
2002MODULE_LICENSE("GPL v2"); 2001MODULE_LICENSE("GPL v2");
diff --git a/include/media/rc-core.h b/include/media/rc-core.h
index aed4272d47f5..fc3a92668bab 100644
--- a/include/media/rc-core.h
+++ b/include/media/rc-core.h
@@ -23,13 +23,6 @@
23#include <linux/timer.h> 23#include <linux/timer.h>
24#include <media/rc-map.h> 24#include <media/rc-map.h>
25 25
26extern int rc_core_debug;
27#define IR_dprintk(level, fmt, ...) \
28do { \
29 if (rc_core_debug >= level) \
30 printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__); \
31} while (0)
32
33/** 26/**
34 * enum rc_driver_type - type of the RC driver. 27 * enum rc_driver_type - type of the RC driver.
35 * 28 *