mmc: simplify mmc_cd_gpio_request() by removing two parameters
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 9 Feb 2012 21:57:07 +0000 (22:57 +0100)
committerChris Ball <cjb@laptop.org>
Tue, 27 Mar 2012 16:20:14 +0000 (12:20 -0400)
commitc9b0546a59293cabf54c85e1218da595af3274ff
treea74dd0315e163c1daaf55abf9087801d84ba8ec0
parent296e0b0357e09fdc6f307953da51c0e5da5b84e7
mmc: simplify mmc_cd_gpio_request() by removing two parameters

Calculate the IRQ number, using gpio_to_irq() and use fixed flags: trigger
on both edges. This makes two out of four arguments of the
mmc_cd_gpio_request() function redundant.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/cd-gpio.c
include/linux/mmc/cd-gpio.h