Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40220c1a authored by David Howells's avatar David Howells
Browse files

IRQ: Use the new typedef for interrupt handler function pointers



Use the new typedef for interrupt handler function pointers rather than
actually spelling out the full thing each time.  This was scripted with the
following small shell script:

#!/bin/sh
egrep -nHrl -e 'irqreturn_t[ 	]*[(][*]' $* |
while read i
do
    echo $i
    perl -pi -e 's/irqreturn_t\s*[(]\s*[*]\s*([_a-zA-Z0-9]*)\s*[)]\s*[(]\s*int\s*,\s*void\s*[*]\s*[)]/irq_handler_t \1/g' $i || exit $?
done

Signed-Off-By: default avatarDavid Howells <dhowells@redhat.com>
parent 58ba81db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -212,7 +212,7 @@ static struct platform_device corgits_device = {
 */
static struct pxamci_platform_data corgi_mci_platform_data;

static int corgi_mci_init(struct device *dev, irqreturn_t (*corgi_detect_int)(int, void *), void *data)
static int corgi_mci_init(struct device *dev, irq_handler_t corgi_detect_int, void *data)
{
	int err;

+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ static struct pxafb_mach_info sharp_lm8v31 = {
	.pxafb_lcd_power = &idp_lcd_power
};

static int idp_mci_init(struct device *dev, irqreturn_t (*idp_detect_int)(int, void *), void *data)
static int idp_mci_init(struct device *dev, irq_handler_t idp_detect_int, void *data)
{
	/* setup GPIO for PXA25x MMC controller	*/
	pxa_gpio_mode(GPIO6_MMCCLK_MD);
+2 −2
Original line number Diff line number Diff line
@@ -378,7 +378,7 @@ static struct pxafb_mach_info sharp_lm8v31 = {
#define	MMC_POLL_RATE		msecs_to_jiffies(1000)

static void lubbock_mmc_poll(unsigned long);
static irqreturn_t (*mmc_detect_int)(int, void *);
static irq_handler_t mmc_detect_int;

static struct timer_list mmc_timer = {
	.function	= lubbock_mmc_poll,
@@ -412,7 +412,7 @@ static irqreturn_t lubbock_detect_int(int irq, void *data)
}

static int lubbock_mci_init(struct device *dev,
		irqreturn_t (*detect_int)(int, void *),
		irq_handler_t detect_int,
		void *data)
{
	/* setup GPIO for PXA25x MMC controller	*/
+1 −1
Original line number Diff line number Diff line
@@ -313,7 +313,7 @@ static struct pxafb_mach_info mainstone_pxafb_info = {
	.pxafb_backlight_power	= mainstone_backlight_power,
};

static int mainstone_mci_init(struct device *dev, irqreturn_t (*mstone_detect_int)(int, void *), void *data)
static int mainstone_mci_init(struct device *dev, irq_handler_t mstone_detect_int, void *data)
{
	int err;

+1 −1
Original line number Diff line number Diff line
@@ -197,7 +197,7 @@ static struct platform_device poodle_ts_device = {
 */
static struct pxamci_platform_data poodle_mci_platform_data;

static int poodle_mci_init(struct device *dev, irqreturn_t (*poodle_detect_int)(int, void *), void *data)
static int poodle_mci_init(struct device *dev, irq_handler_t poodle_detect_int, void *data)
{
	int err;

Loading