diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-02-22 09:33:09 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-02-26 07:10:03 -0500 |
commit | 9b283e67961c5e2dc02b7b25282f3b07f2501974 (patch) | |
tree | eead8fbd8c6707fd50d38e526e9d3eff92ac331c /drivers/media/common/siano/smsir.c | |
parent | 5ed0a2c7eca3265e6df3e9eebedfc2db3916dcd4 (diff) |
[media] siano: replace sms_log() by pr_debug()
Despite its name, those functions are acutally debug
prints for the IR part of the driver. So, properly
map them using pr_debug()
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/common/siano/smsir.c')
-rw-r--r-- | drivers/media/common/siano/smsir.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/media/common/siano/smsir.c b/drivers/media/common/siano/smsir.c index 2e0f96ff5594..1d60d200d9ab 100644 --- a/drivers/media/common/siano/smsir.c +++ b/drivers/media/common/siano/smsir.c | |||
@@ -57,14 +57,14 @@ int sms_ir_init(struct smscore_device_t *coredev) | |||
57 | int board_id = smscore_get_board_id(coredev); | 57 | int board_id = smscore_get_board_id(coredev); |
58 | struct rc_dev *dev; | 58 | struct rc_dev *dev; |
59 | 59 | ||
60 | sms_log("Allocating rc device"); | 60 | pr_debug("Allocating rc device\n"); |
61 | dev = rc_allocate_device(); | 61 | dev = rc_allocate_device(); |
62 | if (!dev) | 62 | if (!dev) |
63 | return -ENOMEM; | 63 | return -ENOMEM; |
64 | 64 | ||
65 | coredev->ir.controller = 0; /* Todo: vega/nova SPI number */ | 65 | coredev->ir.controller = 0; /* Todo: vega/nova SPI number */ |
66 | coredev->ir.timeout = IR_DEFAULT_TIMEOUT; | 66 | coredev->ir.timeout = IR_DEFAULT_TIMEOUT; |
67 | sms_log("IR port %d, timeout %d ms", | 67 | pr_debug("IR port %d, timeout %d ms\n", |
68 | coredev->ir.controller, coredev->ir.timeout); | 68 | coredev->ir.controller, coredev->ir.timeout); |
69 | 69 | ||
70 | snprintf(coredev->ir.name, sizeof(coredev->ir.name), | 70 | snprintf(coredev->ir.name, sizeof(coredev->ir.name), |
@@ -91,7 +91,8 @@ int sms_ir_init(struct smscore_device_t *coredev) | |||
91 | dev->map_name = sms_get_board(board_id)->rc_codes; | 91 | dev->map_name = sms_get_board(board_id)->rc_codes; |
92 | dev->driver_name = MODULE_NAME; | 92 | dev->driver_name = MODULE_NAME; |
93 | 93 | ||
94 | sms_log("Input device (IR) %s is set for key events", dev->input_name); | 94 | pr_debug("Input device (IR) %s is set for key events\n", |
95 | dev->input_name); | ||
95 | 96 | ||
96 | err = rc_register_device(dev); | 97 | err = rc_register_device(dev); |
97 | if (err < 0) { | 98 | if (err < 0) { |
@@ -108,5 +109,5 @@ void sms_ir_exit(struct smscore_device_t *coredev) | |||
108 | { | 109 | { |
109 | rc_unregister_device(coredev->ir.dev); | 110 | rc_unregister_device(coredev->ir.dev); |
110 | 111 | ||
111 | sms_log(""); | 112 | pr_debug("\n"); |
112 | } | 113 | } |