adp5520-keys.c (1cb0aa88179b7a71c240529e9d781d7bbb43d2e8) adp5520-keys.c (5298cc4cc753bbe4c530b41341834f6ef3344d0d)
1/*
2 * Keypad driver for Analog Devices ADP5520 MFD PMICs
3 *
4 * Copyright 2009 Analog Devices Inc.
5 *
6 * Licensed under the GPL-2 or later.
7 */
8

--- 55 unchanged lines hidden (view full) ---

64 adp5520_read(dev->master, ADP5520_KR_INT_STAT_2, &reg_val_hi);
65 keymask |= (reg_val_hi << 8) | reg_val_lo;
66 adp5520_keys_report_event(dev, keymask, 0);
67 }
68
69 return 0;
70}
71
1/*
2 * Keypad driver for Analog Devices ADP5520 MFD PMICs
3 *
4 * Copyright 2009 Analog Devices Inc.
5 *
6 * Licensed under the GPL-2 or later.
7 */
8

--- 55 unchanged lines hidden (view full) ---

64 adp5520_read(dev->master, ADP5520_KR_INT_STAT_2, &reg_val_hi);
65 keymask |= (reg_val_hi << 8) | reg_val_lo;
66 adp5520_keys_report_event(dev, keymask, 0);
67 }
68
69 return 0;
70}
71
72static int __devinit adp5520_keys_probe(struct platform_device *pdev)
72static int adp5520_keys_probe(struct platform_device *pdev)
73{
74 struct adp5520_keys_platform_data *pdata = pdev->dev.platform_data;
75 struct input_dev *input;
76 struct adp5520_keys *dev;
77 int ret, i;
78 unsigned char en_mask, ctl_mask = 0;
79
80 if (pdev->id != ID_ADP5520) {

--- 130 unchanged lines hidden ---
73{
74 struct adp5520_keys_platform_data *pdata = pdev->dev.platform_data;
75 struct input_dev *input;
76 struct adp5520_keys *dev;
77 int ret, i;
78 unsigned char en_mask, ctl_mask = 0;
79
80 if (pdev->id != ID_ADP5520) {

--- 130 unchanged lines hidden ---