linux/drivers/input
Julia Lawall eacd0c4796 Input: tegra-kbc - simplify use of devm_ioremap_resource
Remove unneeded error handling on the result of a call to
platform_get_resource when the value is passed to devm_ioremap_resource.

Move the call to platform_get_resource adjacent to the call to
devm_ioremap_resource to make the connection between them more clear.

A simplified version of the semantic patch that makes this change is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression pdev,res,n,e,e1;
expression ret != 0;
identifier l;
@@

- res = platform_get_resource(pdev, IORESOURCE_MEM, n);
  ... when != res
- if (res == NULL) { ... \(goto l;\|return ret;\) }
  ... when != res
+ res = platform_get_resource(pdev, IORESOURCE_MEM, n);
  e = devm_ioremap_resource(e1, res);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2013-08-15 00:30:12 -07:00
..
gameport
joystick Input: joysticks - use dev_get_platdata() 2013-08-12 22:32:30 -07:00
keyboard Input: tegra-kbc - simplify use of devm_ioremap_resource 2013-08-15 00:30:12 -07:00
misc Input: wistron_btns - add MODULE_DEVICE_TABLE 2013-08-13 09:52:17 -07:00
mouse Input: synaptics - fix incorrect placement of __initconst 2013-08-12 22:32:42 -07:00
serio Input: add OLPC AP-SP driver 2013-06-30 20:09:18 -07:00
tablet Input: wacom - integrate resolution calculation 2013-08-12 22:31:12 -07:00
touchscreen Input: htcpen - fix incorrect placement of __initdata 2013-08-15 00:30:04 -07:00
Kconfig
Makefile
apm-power.c
evbug.c
evdev.c Input: evdev - flush queues during EVIOCGKEY-like ioctls 2013-06-09 22:35:05 -07:00
ff-core.c
ff-memless.c
input-compat.c
input-compat.h
input-mt.c
input-polldev.c
input.c
joydev.c
matrix-keymap.c
mousedev.c
sparse-keymap.c