diff options
Diffstat (limited to 'drivers/input/joystick/iforce/iforce-ff.c')
-rw-r--r-- | drivers/input/joystick/iforce/iforce-ff.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/input/joystick/iforce/iforce-ff.c b/drivers/input/joystick/iforce/iforce-ff.c index 8fb0c19cc60e..f2a4381d0ab8 100644 --- a/drivers/input/joystick/iforce/iforce-ff.c +++ b/drivers/input/joystick/iforce/iforce-ff.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * $Id: iforce-ff.c,v 1.9 2002/02/02 19:28:35 jdeneux Exp $ | 2 | * $Id: iforce-ff.c,v 1.9 2002/02/02 19:28:35 jdeneux Exp $ |
3 | * | 3 | * |
4 | * Copyright (c) 2000-2002 Vojtech Pavlik <vojtech@ucw.cz> | 4 | * Copyright (c) 2000-2002 Vojtech Pavlik <vojtech@ucw.cz> |
5 | * Copyright (c) 2001-2002 Johann Deneux <deneux@ifrance.com> | 5 | * Copyright (c) 2001-2002, 2007 Johann Deneux <johann.deneux@gmail.com> |
6 | * | 6 | * |
7 | * USB/RS232 I-Force joysticks and wheels. | 7 | * USB/RS232 I-Force joysticks and wheels. |
8 | */ | 8 | */ |
@@ -205,7 +205,7 @@ static int need_condition_modifier(struct ff_effect *old, struct ff_effect *new) | |||
205 | int i; | 205 | int i; |
206 | 206 | ||
207 | if (new->type != FF_SPRING && new->type != FF_FRICTION) { | 207 | if (new->type != FF_SPRING && new->type != FF_FRICTION) { |
208 | printk(KERN_WARNING "iforce.c: bad effect type in need_condition_modifier\n"); | 208 | warn("bad effect type in need_condition_modifier"); |
209 | return 0; | 209 | return 0; |
210 | } | 210 | } |
211 | 211 | ||
@@ -227,7 +227,7 @@ static int need_condition_modifier(struct ff_effect *old, struct ff_effect *new) | |||
227 | static int need_magnitude_modifier(struct ff_effect *old, struct ff_effect *effect) | 227 | static int need_magnitude_modifier(struct ff_effect *old, struct ff_effect *effect) |
228 | { | 228 | { |
229 | if (effect->type != FF_CONSTANT) { | 229 | if (effect->type != FF_CONSTANT) { |
230 | printk(KERN_WARNING "iforce.c: bad effect type in need_envelope_modifier\n"); | 230 | warn("bad effect type in need_envelope_modifier"); |
231 | return 0; | 231 | return 0; |
232 | } | 232 | } |
233 | 233 | ||
@@ -258,7 +258,7 @@ static int need_envelope_modifier(struct ff_effect *old, struct ff_effect *effec | |||
258 | break; | 258 | break; |
259 | 259 | ||
260 | default: | 260 | default: |
261 | printk(KERN_WARNING "iforce.c: bad effect type in need_envelope_modifier\n"); | 261 | warn("bad effect type in need_envelope_modifier"); |
262 | } | 262 | } |
263 | 263 | ||
264 | return 0; | 264 | return 0; |
@@ -271,7 +271,7 @@ static int need_envelope_modifier(struct ff_effect *old, struct ff_effect *effec | |||
271 | static int need_period_modifier(struct ff_effect *old, struct ff_effect *new) | 271 | static int need_period_modifier(struct ff_effect *old, struct ff_effect *new) |
272 | { | 272 | { |
273 | if (new->type != FF_PERIODIC) { | 273 | if (new->type != FF_PERIODIC) { |
274 | printk(KERN_WARNING "iforce.c: bad effect type in need_period_modifier\n"); | 274 | warn("bad effect type in need_period_modifier"); |
275 | return 0; | 275 | return 0; |
276 | } | 276 | } |
277 | return (old->u.periodic.period != new->u.periodic.period | 277 | return (old->u.periodic.period != new->u.periodic.period |