Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328506
b: refs/heads/master
c: 41091ad
h: refs/heads/master
v: v3
  • Loading branch information
Baodong Chen authored and Dmitry Torokhov committed Aug 22, 2012
1 parent 96e172f commit 8e27cc1
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 18 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: 112b51cfa21714d001e5b3e3f7c1f13146906a5d
refs/heads/master: 41091ad0b8f843d36390058362c8f3c52a26a333
2 changes: 1 addition & 1 deletion trunk/drivers/input/apm-power.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static void system_power_event(unsigned int keycode)
}

static void apmpower_event(struct input_handle *handle, unsigned int type,
unsigned int code, int value)
unsigned int code, int value)
{
/* only react on key down events */
if (value != 1)
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/input/ff-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ int input_ff_upload(struct input_dev *dev, struct ff_effect *effect,

if (effect->id == -1) {
for (id = 0; id < ff->max_effects; id++)
if (!ff->effect_owners[id])
break;
if (!ff->effect_owners[id])
break;

if (id >= ff->max_effects) {
ret = -ENOSPC;
Expand Down
14 changes: 8 additions & 6 deletions trunk/drivers/input/ff-memless.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@ static const struct ff_envelope *get_envelope(const struct ff_effect *effect)
static const struct ff_envelope empty_envelope;

switch (effect->type) {
case FF_PERIODIC:
return &effect->u.periodic.envelope;
case FF_CONSTANT:
return &effect->u.constant.envelope;
default:
return &empty_envelope;
case FF_PERIODIC:
return &effect->u.periodic.envelope;

case FF_CONSTANT:
return &effect->u.constant.envelope;

default:
return &empty_envelope;
}
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/input/joydev.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ static long joydev_ioctl(struct file *file,

case JS_SET_ALL:
retval = copy_from_user(&joydev->glue, argp,
sizeof(joydev->glue)) ? -EFAULT: 0;
sizeof(joydev->glue)) ? -EFAULT : 0;
break;

case JS_GET_ALL:
Expand Down
9 changes: 4 additions & 5 deletions trunk/drivers/input/mousedev.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,17 +551,16 @@ static int mousedev_open(struct inode *inode, struct file *file)
return -ENODEV;

error = mutex_lock_interruptible(&mousedev_table_mutex);
if (error) {
if (error)
return error;
}

mousedev = mousedev_table[i];
if (mousedev)
get_device(&mousedev->dev);
mutex_unlock(&mousedev_table_mutex);

if (!mousedev) {
if (!mousedev)
return -ENODEV;
}

client = kzalloc(sizeof(struct mousedev_client), GFP_KERNEL);
if (!client) {
Expand Down Expand Up @@ -1088,7 +1087,7 @@ static int __init mousedev_init(void)
#ifdef CONFIG_INPUT_MOUSEDEV_PSAUX
error = misc_register(&psaux_mouse);
if (error)
pr_warning("could not register psaux device, error: %d\n",
pr_warn("could not register psaux device, error: %d\n",
error);
else
psaux_registered = 1;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/input/sparse-keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ int sparse_keymap_setup(struct input_dev *dev,
for (e = keymap; e->type != KE_END; e++)
map_size++;

map = kcalloc(map_size, sizeof (struct key_entry), GFP_KERNEL);
map = kcalloc(map_size, sizeof(struct key_entry), GFP_KERNEL);
if (!map)
return -ENOMEM;

memcpy(map, keymap, map_size * sizeof (struct key_entry));
memcpy(map, keymap, map_size * sizeof(struct key_entry));

for (i = 0; i < map_size; i++) {
entry = &map[i];
Expand Down

0 comments on commit 8e27cc1

Please sign in to comment.