diff options
| author | Oliver Neukum <oneukum@suse.de> | 2015-04-14 17:24:09 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-04-14 17:29:49 -0400 |
| commit | 2afebafdbdabd666f6ed3989bb5be21bd94b57bd (patch) | |
| tree | 6019435e66277df4dbfeebbb392164a60f0a8cd9 /drivers/input | |
| parent | 8b8be51b4fd365ac5983e117be9d28f427a07b68 (diff) | |
Input: ff-core - use new debug macros
Replace old pr_* with dev_* debugging macros
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
| -rw-r--r-- | drivers/input/ff-core.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/input/ff-core.c b/drivers/input/ff-core.c index f50f6dd92274..b81c88c43452 100644 --- a/drivers/input/ff-core.c +++ b/drivers/input/ff-core.c | |||
| @@ -23,8 +23,6 @@ | |||
| 23 | 23 | ||
| 24 | /* #define DEBUG */ | 24 | /* #define DEBUG */ |
| 25 | 25 | ||
| 26 | #define pr_fmt(fmt) KBUILD_BASENAME ": " fmt | ||
| 27 | |||
| 28 | #include <linux/input.h> | 26 | #include <linux/input.h> |
| 29 | #include <linux/module.h> | 27 | #include <linux/module.h> |
| 30 | #include <linux/mutex.h> | 28 | #include <linux/mutex.h> |
| @@ -116,7 +114,7 @@ int input_ff_upload(struct input_dev *dev, struct ff_effect *effect, | |||
| 116 | 114 | ||
| 117 | if (effect->type < FF_EFFECT_MIN || effect->type > FF_EFFECT_MAX || | 115 | if (effect->type < FF_EFFECT_MIN || effect->type > FF_EFFECT_MAX || |
| 118 | !test_bit(effect->type, dev->ffbit)) { | 116 | !test_bit(effect->type, dev->ffbit)) { |
| 119 | pr_debug("invalid or not supported effect type in upload\n"); | 117 | dev_dbg(&dev->dev, "invalid or not supported effect type in upload\n"); |
| 120 | return -EINVAL; | 118 | return -EINVAL; |
| 121 | } | 119 | } |
| 122 | 120 | ||
| @@ -124,7 +122,7 @@ int input_ff_upload(struct input_dev *dev, struct ff_effect *effect, | |||
| 124 | (effect->u.periodic.waveform < FF_WAVEFORM_MIN || | 122 | (effect->u.periodic.waveform < FF_WAVEFORM_MIN || |
| 125 | effect->u.periodic.waveform > FF_WAVEFORM_MAX || | 123 | effect->u.periodic.waveform > FF_WAVEFORM_MAX || |
| 126 | !test_bit(effect->u.periodic.waveform, dev->ffbit))) { | 124 | !test_bit(effect->u.periodic.waveform, dev->ffbit))) { |
| 127 | pr_debug("invalid or not supported wave form in upload\n"); | 125 | dev_dbg(&dev->dev, "invalid or not supported wave form in upload\n"); |
| 128 | return -EINVAL; | 126 | return -EINVAL; |
| 129 | } | 127 | } |
| 130 | 128 | ||
| @@ -246,7 +244,7 @@ static int flush_effects(struct input_dev *dev, struct file *file) | |||
| 246 | struct ff_device *ff = dev->ff; | 244 | struct ff_device *ff = dev->ff; |
| 247 | int i; | 245 | int i; |
| 248 | 246 | ||
| 249 | pr_debug("flushing now\n"); | 247 | dev_dbg(&dev->dev, "flushing now\n"); |
| 250 | 248 | ||
| 251 | mutex_lock(&ff->mutex); | 249 | mutex_lock(&ff->mutex); |
| 252 | 250 | ||
| @@ -316,7 +314,7 @@ int input_ff_create(struct input_dev *dev, unsigned int max_effects) | |||
| 316 | int i; | 314 | int i; |
| 317 | 315 | ||
| 318 | if (!max_effects) { | 316 | if (!max_effects) { |
| 319 | pr_err("cannot allocate device without any effects\n"); | 317 | dev_err(&dev->dev, "cannot allocate device without any effects\n"); |
| 320 | return -EINVAL; | 318 | return -EINVAL; |
| 321 | } | 319 | } |
| 322 | 320 | ||
