rb532_button.c (1cb0aa88179b7a71c240529e9d781d7bbb43d2e8) | rb532_button.c (5298cc4cc753bbe4c530b41341834f6ef3344d0d) |
---|---|
1/* 2 * Support for the S1 button on Routerboard 532 3 * 4 * Copyright (C) 2009 Phil Sutter <n0-1@freewrt.org> 5 */ 6 7#include <linux/input-polldev.h> 8#include <linux/module.h> --- 37 unchanged lines hidden (view full) --- 46 47static void rb532_button_poll(struct input_polled_dev *poll_dev) 48{ 49 input_report_key(poll_dev->input, RB532_BTN_KSYM, 50 rb532_button_pressed()); 51 input_sync(poll_dev->input); 52} 53 | 1/* 2 * Support for the S1 button on Routerboard 532 3 * 4 * Copyright (C) 2009 Phil Sutter <n0-1@freewrt.org> 5 */ 6 7#include <linux/input-polldev.h> 8#include <linux/module.h> --- 37 unchanged lines hidden (view full) --- 46 47static void rb532_button_poll(struct input_polled_dev *poll_dev) 48{ 49 input_report_key(poll_dev->input, RB532_BTN_KSYM, 50 rb532_button_pressed()); 51 input_sync(poll_dev->input); 52} 53 |
54static int __devinit rb532_button_probe(struct platform_device *pdev) | 54static int rb532_button_probe(struct platform_device *pdev) |
55{ 56 struct input_polled_dev *poll_dev; 57 int error; 58 59 poll_dev = input_allocate_polled_device(); 60 if (!poll_dev) 61 return -ENOMEM; 62 --- 46 unchanged lines hidden --- | 55{ 56 struct input_polled_dev *poll_dev; 57 int error; 58 59 poll_dev = input_allocate_polled_device(); 60 if (!poll_dev) 61 return -ENOMEM; 62 --- 46 unchanged lines hidden --- |