pxa27x_keypad.c (efd15f5f4ff63f6ac5d80850686e3d2cc8c4481b) | pxa27x_keypad.c (049d75f72d9b1cce0f5ca66ea324f0b5318046eb) |
---|---|
1/* 2 * linux/drivers/input/keyboard/pxa27x_keypad.c 3 * 4 * Driver for the pxa27x matrix keyboard controller. 5 * 6 * Created: Feb 22, 2007 7 * Author: Rodolfo Giometti <giometti@linux.it> 8 * --- 772 unchanged lines hidden (view full) --- 781 input_dev->keycodesize = sizeof(keypad->keycodes[0]); 782 input_dev->keycodemax = ARRAY_SIZE(keypad->keycodes); 783 784 input_set_drvdata(input_dev, keypad); 785 786 input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REP); 787 input_set_capability(input_dev, EV_MSC, MSC_SCAN); 788 | 1/* 2 * linux/drivers/input/keyboard/pxa27x_keypad.c 3 * 4 * Driver for the pxa27x matrix keyboard controller. 5 * 6 * Created: Feb 22, 2007 7 * Author: Rodolfo Giometti <giometti@linux.it> 8 * --- 772 unchanged lines hidden (view full) --- 781 input_dev->keycodesize = sizeof(keypad->keycodes[0]); 782 input_dev->keycodemax = ARRAY_SIZE(keypad->keycodes); 783 784 input_set_drvdata(input_dev, keypad); 785 786 input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REP); 787 input_set_capability(input_dev, EV_MSC, MSC_SCAN); 788 |
789 if (pdata) | 789 if (pdata) { |
790 error = pxa27x_keypad_build_keycode(keypad); | 790 error = pxa27x_keypad_build_keycode(keypad); |
791 else | 791 } else { |
792 error = pxa27x_keypad_build_keycode_from_dt(keypad); | 792 error = pxa27x_keypad_build_keycode_from_dt(keypad); |
793 /* 794 * Data that we get from DT resides in dynamically 795 * allocated memory so we need to update our pdata 796 * pointer. 797 */ 798 pdata = keypad->pdata; 799 } |
|
793 if (error) { 794 dev_err(&pdev->dev, "failed to build keycode\n"); 795 goto failed_put_clk; 796 } 797 798 if ((pdata->enable_rotary0 && keypad->rotary_rel_code[0] != -1) || 799 (pdata->enable_rotary1 && keypad->rotary_rel_code[1] != -1)) { 800 input_dev->evbit[0] |= BIT_MASK(EV_REL); --- 79 unchanged lines hidden --- | 800 if (error) { 801 dev_err(&pdev->dev, "failed to build keycode\n"); 802 goto failed_put_clk; 803 } 804 805 if ((pdata->enable_rotary0 && keypad->rotary_rel_code[0] != -1) || 806 (pdata->enable_rotary1 && keypad->rotary_rel_code[1] != -1)) { 807 input_dev->evbit[0] |= BIT_MASK(EV_REL); --- 79 unchanged lines hidden --- |