Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178652
b: refs/heads/master
c: 1b11c88
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Dec 25, 2009
1 parent 87e486b commit 101a08d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 25ae08317647c68ed9276f7bdc07d0d5fd042628
refs/heads/master: 1b11c88d3e8f55dc9d193d19de11e3f7abc1b7d7
6 changes: 3 additions & 3 deletions trunk/drivers/input/ff-memless.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static int get_compatible_type(struct ff_device *ff, int effect_type)
*/
static void ml_combine_effects(struct ff_effect *effect,
struct ml_effect_state *state,
unsigned int gain)
int gain)
{
struct ff_effect *new = state->effect;
unsigned int strong, weak, i;
Expand All @@ -252,8 +252,8 @@ static void ml_combine_effects(struct ff_effect *effect,
break;

case FF_RUMBLE:
strong = new->u.rumble.strong_magnitude * gain / 0xffff;
weak = new->u.rumble.weak_magnitude * gain / 0xffff;
strong = (u32)new->u.rumble.strong_magnitude * gain / 0xffff;
weak = (u32)new->u.rumble.weak_magnitude * gain / 0xffff;
effect->u.rumble.strong_magnitude =
min(strong + effect->u.rumble.strong_magnitude,
0xffffU);
Expand Down

0 comments on commit 101a08d

Please sign in to comment.