Lines Matching refs:keypad

87 static void max7359_build_keycode(struct max7359_keypad *keypad,  in max7359_build_keycode()  argument
90 struct input_dev *input_dev = keypad->input_dev; in max7359_build_keycode()
101 keypad->keycodes[scancode] = keycode; in max7359_build_keycode()
110 struct max7359_keypad *keypad = dev_id; in max7359_interrupt() local
111 struct input_dev *input_dev = keypad->input_dev; in max7359_interrupt()
114 val = max7359_read_reg(keypad->client, MAX7359_REG_KEYFIFO); in max7359_interrupt()
121 dev_dbg(&keypad->client->dev, in max7359_interrupt()
125 input_report_key(input_dev, keypad->keycodes[code], !release); in max7359_interrupt()
152 struct max7359_keypad *keypad = input_get_drvdata(dev); in max7359_open() local
154 max7359_take_catnap(keypad->client); in max7359_open()
161 struct max7359_keypad *keypad = input_get_drvdata(dev); in max7359_close() local
163 max7359_fall_deepsleep(keypad->client); in max7359_close()
186 struct max7359_keypad *keypad; in max7359_probe() local
205 keypad = kzalloc(sizeof(struct max7359_keypad), GFP_KERNEL); in max7359_probe()
207 if (!keypad || !input_dev) { in max7359_probe()
213 keypad->client = client; in max7359_probe()
214 keypad->input_dev = input_dev; in max7359_probe()
223 input_dev->keycodesize = sizeof(keypad->keycodes[0]); in max7359_probe()
224 input_dev->keycodemax = ARRAY_SIZE(keypad->keycodes); in max7359_probe()
225 input_dev->keycode = keypad->keycodes; in max7359_probe()
228 input_set_drvdata(input_dev, keypad); in max7359_probe()
230 max7359_build_keycode(keypad, keymap_data); in max7359_probe()
234 client->name, keypad); in max7359_probe()
250 i2c_set_clientdata(client, keypad); in max7359_probe()
256 free_irq(client->irq, keypad); in max7359_probe()
259 kfree(keypad); in max7359_probe()
265 struct max7359_keypad *keypad = i2c_get_clientdata(client); in max7359_remove() local
267 free_irq(client->irq, keypad); in max7359_remove()
268 input_unregister_device(keypad->input_dev); in max7359_remove()
269 kfree(keypad); in max7359_remove()