parkbd.c (8632987380765dee716d460640aa58d58d52998e) | parkbd.c (a9f08ad7adb3d2f90e11efbb40a1246ef95b0c04) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Parallel port to Keyboard port adapter driver for Linux 4 * 5 * Copyright (c) 1999-2004 Vojtech Pavlik 6 */ 7 8 --- 155 unchanged lines hidden (view full) --- 164static struct serio *parkbd_allocate_serio(void) 165{ 166 struct serio *serio; 167 168 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); 169 if (serio) { 170 serio->id.type = parkbd_mode; 171 serio->write = parkbd_write; | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Parallel port to Keyboard port adapter driver for Linux 4 * 5 * Copyright (c) 1999-2004 Vojtech Pavlik 6 */ 7 8 --- 155 unchanged lines hidden (view full) --- 164static struct serio *parkbd_allocate_serio(void) 165{ 166 struct serio *serio; 167 168 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); 169 if (serio) { 170 serio->id.type = parkbd_mode; 171 serio->write = parkbd_write; |
172 strlcpy(serio->name, "PARKBD AT/XT keyboard adapter", sizeof(serio->name)); | 172 strscpy(serio->name, "PARKBD AT/XT keyboard adapter", sizeof(serio->name)); |
173 snprintf(serio->phys, sizeof(serio->phys), "%s/serio0", parkbd_dev->port->name); 174 } 175 176 return serio; 177} 178 179static void parkbd_attach(struct parport *pp) 180{ --- 43 unchanged lines hidden --- | 173 snprintf(serio->phys, sizeof(serio->phys), "%s/serio0", parkbd_dev->port->name); 174 } 175 176 return serio; 177} 178 179static void parkbd_attach(struct parport *pp) 180{ --- 43 unchanged lines hidden --- |