diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-09-18 06:23:34 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2008-10-14 17:51:01 -0400 |
commit | 795750197f240ca2a3f064c0210c4efd40dbaed3 (patch) | |
tree | 05c40a4331091817e73710ddf34fcc3a3ab5a2c6 /drivers/hid/hid-lg2ff.c | |
parent | 76483cf4d0efbc35eaf9905a437f2f1be0221360 (diff) |
HID: convert to dev_* prints
Since we have a real device bound to a driver, we may use struct
device for printing. Use dev_* functions instead of printks in
4 drivers.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-lg2ff.c')
-rw-r--r-- | drivers/hid/hid-lg2ff.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/hid/hid-lg2ff.c b/drivers/hid/hid-lg2ff.c index b2e9a67aa652..4e6dc6e26523 100644 --- a/drivers/hid/hid-lg2ff.c +++ b/drivers/hid/hid-lg2ff.c | |||
@@ -71,18 +71,18 @@ int lg2ff_init(struct hid_device *hid) | |||
71 | int error; | 71 | int error; |
72 | 72 | ||
73 | if (list_empty(report_list)) { | 73 | if (list_empty(report_list)) { |
74 | printk(KERN_ERR "hid-lg2ff: no output report found\n"); | 74 | dev_err(&hid->dev, "no output report found\n"); |
75 | return -ENODEV; | 75 | return -ENODEV; |
76 | } | 76 | } |
77 | 77 | ||
78 | report = list_entry(report_list->next, struct hid_report, list); | 78 | report = list_entry(report_list->next, struct hid_report, list); |
79 | 79 | ||
80 | if (report->maxfield < 1) { | 80 | if (report->maxfield < 1) { |
81 | printk(KERN_ERR "hid-lg2ff: output report is empty\n"); | 81 | dev_err(&hid->dev, "output report is empty\n"); |
82 | return -ENODEV; | 82 | return -ENODEV; |
83 | } | 83 | } |
84 | if (report->field[0]->report_count < 7) { | 84 | if (report->field[0]->report_count < 7) { |
85 | printk(KERN_ERR "hid-lg2ff: not enough values in the field\n"); | 85 | dev_err(&hid->dev, "not enough values in the field\n"); |
86 | return -ENODEV; | 86 | return -ENODEV; |
87 | } | 87 | } |
88 | 88 | ||
@@ -109,7 +109,7 @@ int lg2ff_init(struct hid_device *hid) | |||
109 | 109 | ||
110 | usbhid_submit_report(hid, report, USB_DIR_OUT); | 110 | usbhid_submit_report(hid, report, USB_DIR_OUT); |
111 | 111 | ||
112 | printk(KERN_INFO "Force feedback for Logitech Rumblepad 2 by " | 112 | dev_info(&hid->dev, "Force feedback for Logitech Rumblepad 2 by " |
113 | "Anssi Hannula <anssi.hannula@gmail.com>\n"); | 113 | "Anssi Hannula <anssi.hannula@gmail.com>\n"); |
114 | 114 | ||
115 | return 0; | 115 | return 0; |