q40kbd.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | q40kbd.c (a9f08ad7adb3d2f90e11efbb40a1246ef95b0c04) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (c) 2000-2001 Vojtech Pavlik 4 * 5 * Based on the work of: 6 * Richard Zidlicky <Richard.Zidlicky@stud.informatik.uni-erlangen.de> 7 */ 8 --- 112 unchanged lines hidden (view full) --- 121 q40kbd->port = port; 122 spin_lock_init(&q40kbd->lock); 123 124 port->id.type = SERIO_8042; 125 port->open = q40kbd_open; 126 port->close = q40kbd_close; 127 port->port_data = q40kbd; 128 port->dev.parent = &pdev->dev; | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (c) 2000-2001 Vojtech Pavlik 4 * 5 * Based on the work of: 6 * Richard Zidlicky <Richard.Zidlicky@stud.informatik.uni-erlangen.de> 7 */ 8 --- 112 unchanged lines hidden (view full) --- 121 q40kbd->port = port; 122 spin_lock_init(&q40kbd->lock); 123 124 port->id.type = SERIO_8042; 125 port->open = q40kbd_open; 126 port->close = q40kbd_close; 127 port->port_data = q40kbd; 128 port->dev.parent = &pdev->dev; |
129 strlcpy(port->name, "Q40 Kbd Port", sizeof(port->name)); 130 strlcpy(port->phys, "Q40", sizeof(port->phys)); | 129 strscpy(port->name, "Q40 Kbd Port", sizeof(port->name)); 130 strscpy(port->phys, "Q40", sizeof(port->phys)); |
131 132 q40kbd_stop(); 133 134 error = request_irq(Q40_IRQ_KEYBOARD, q40kbd_interrupt, 0, 135 DRV_NAME, q40kbd); 136 if (error) { 137 dev_err(&pdev->dev, "Can't get irq %d.\n", Q40_IRQ_KEYBOARD); 138 goto err_free_mem; --- 39 unchanged lines hidden --- | 131 132 q40kbd_stop(); 133 134 error = request_irq(Q40_IRQ_KEYBOARD, q40kbd_interrupt, 0, 135 DRV_NAME, q40kbd); 136 if (error) { 137 dev_err(&pdev->dev, "Can't get irq %d.\n", Q40_IRQ_KEYBOARD); 138 goto err_free_mem; --- 39 unchanged lines hidden --- |