diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2016-10-18 20:53:35 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-10-21 10:05:34 -0200 |
commit | f96cffd77b014944fd0d855cf56b2b5724fafb0d (patch) | |
tree | d61e36fdb4b79aef7df01d089af85511c8b1b1c1 /drivers/media/firewire | |
parent | 2a3edc5d55c23ee7e2c7fa662ac76cc41863c7a4 (diff) | |
download | linux-f96cffd77b014944fd0d855cf56b2b5724fafb0d.tar.gz linux-f96cffd77b014944fd0d855cf56b2b5724fafb0d.tar.bz2 linux-f96cffd77b014944fd0d855cf56b2b5724fafb0d.zip |
[media] firewire: use dev_dbg() instead of printk()
A structure for firedtv (struct firedtv) has a member for a pointer to
struct device. In this case, we can use dev_dbg() for debug printing.
This is more preferrable behaviour in device driver development.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Acked-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/firewire')
-rw-r--r-- | drivers/media/firewire/firedtv-rc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/firewire/firedtv-rc.c b/drivers/media/firewire/firedtv-rc.c index f82d4a93feb3..04dea2aac583 100644 --- a/drivers/media/firewire/firedtv-rc.c +++ b/drivers/media/firewire/firedtv-rc.c @@ -184,8 +184,9 @@ void fdtv_handle_rc(struct firedtv *fdtv, unsigned int code) else if (code >= 0x4540 && code <= 0x4542) code = oldtable[code - 0x4521]; else { - printk(KERN_DEBUG "firedtv: invalid key code 0x%04x " - "from remote control\n", code); + dev_dbg(fdtv->device, + "invalid key code 0x%04x from remote control\n", + code); return; } |