From 0521bd84db74cbbe5a9e2df111686069ca0276b2 Mon Sep 17 00:00:00 2001 From: mb Date: Sun, 20 Mar 2011 14:07:25 +0000 Subject: omap24xx: Update to 2.6.38. Remove 2.6.37 files git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26244 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches-2.6.37/310-n8x0-gpioswitch-input.patch | 100 --------------------- 1 file changed, 100 deletions(-) delete mode 100644 target/linux/omap24xx/patches-2.6.37/310-n8x0-gpioswitch-input.patch (limited to 'target/linux/omap24xx/patches-2.6.37/310-n8x0-gpioswitch-input.patch') diff --git a/target/linux/omap24xx/patches-2.6.37/310-n8x0-gpioswitch-input.patch b/target/linux/omap24xx/patches-2.6.37/310-n8x0-gpioswitch-input.patch deleted file mode 100644 index a730e6c55..000000000 --- a/target/linux/omap24xx/patches-2.6.37/310-n8x0-gpioswitch-input.patch +++ /dev/null @@ -1,100 +0,0 @@ ---- - arch/arm/mach-omap2/board-n8x0.c | 73 +++++++++++++++++++++++++++++++++++++++ - 1 file changed, 73 insertions(+) - -Index: linux-2.6.37/arch/arm/mach-omap2/board-n8x0.c -=================================================================== ---- linux-2.6.37.orig/arch/arm/mach-omap2/board-n8x0.c 2011-01-27 14:17:29.132000007 +0100 -+++ linux-2.6.37/arch/arm/mach-omap2/board-n8x0.c 2011-01-27 14:17:32.763000006 +0100 -@@ -789,6 +789,77 @@ - - extern void n8x0_usb_init(void); - -+struct gpio_switch_input_dev { -+ struct input_dev *idev; -+ unsigned int swcode; -+}; -+ -+static struct gpio_switch_input_dev *slide_input; -+static struct gpio_switch_input_dev *kblock_input; -+ -+static void n8x0_gpio_switch_input_notify(struct gpio_switch_input_dev *gdev, -+ int state) -+{ -+ if (gdev) { -+ input_report_switch(gdev->idev, gdev->swcode, state); -+ input_sync(gdev->idev); -+ } -+} -+ -+static void n8x0_slide_notify(void *data, int state) -+{ -+ n8x0_gpio_switch_input_notify(slide_input, state); -+} -+ -+static void n8x0_kb_lock_notify(void *data, int state) -+{ -+ n8x0_gpio_switch_input_notify(kblock_input, state); -+} -+ -+static struct gpio_switch_input_dev * __init gpioswitch_input_init( -+ const char *name, -+ unsigned int swcode) -+{ -+ struct gpio_switch_input_dev *gdev; -+ int err; -+ -+ gdev = kzalloc(sizeof(*gdev), GFP_KERNEL); -+ if (!gdev) -+ goto error; -+ gdev->swcode = swcode; -+ -+ gdev->idev = input_allocate_device(); -+ if (!gdev->idev) -+ goto err_free; -+ -+ gdev->idev->evbit[0] = BIT_MASK(EV_SW); -+ gdev->idev->swbit[BIT_WORD(swcode)] = BIT_MASK(swcode); -+ gdev->idev->name = name; -+ -+ err = input_register_device(gdev->idev); -+ if (err) -+ goto err_free_idev; -+ -+ return gdev; -+ -+err_free_idev: -+ input_free_device(gdev->idev); -+err_free: -+ kfree(gdev); -+error: -+ return NULL; -+} -+ -+static int __init n8x0_gpio_switches_input_init(void) -+{ -+ slide_input = gpioswitch_input_init("slide", SW_KEYPAD_SLIDE); -+ kblock_input = gpioswitch_input_init("kb_lock", SW_LID); -+ if (WARN_ON(!slide_input || !kblock_input)) -+ return -ENODEV; -+ return 0; -+} -+late_initcall(n8x0_gpio_switches_input_init); -+ - static struct omap_gpio_switch n8x0_gpio_switches[] __initdata = { - { - .name = "headphone", -@@ -810,11 +881,13 @@ - .gpio = -1, - .debounce_rising = 200, - .debounce_falling = 200, -+ .notify = n8x0_slide_notify, - }, { - .name = "kb_lock", - .gpio = -1, - .debounce_rising = 200, - .debounce_falling = 200, -+ .notify = n8x0_kb_lock_notify, - }, - }; - -- cgit v1.2.3