ct82c710.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) ct82c710.c (a9f08ad7adb3d2f90e11efbb40a1246ef95b0c04)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (c) 1999-2001 Vojtech Pavlik
4 */
5
6/*
7 * 82C710 C&T mouse port chip driver for Linux
8 */

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

165 if (!ct82c710_port)
166 return -ENOMEM;
167
168 ct82c710_port->id.type = SERIO_8042;
169 ct82c710_port->dev.parent = &dev->dev;
170 ct82c710_port->open = ct82c710_open;
171 ct82c710_port->close = ct82c710_close;
172 ct82c710_port->write = ct82c710_write;
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (c) 1999-2001 Vojtech Pavlik
4 */
5
6/*
7 * 82C710 C&T mouse port chip driver for Linux
8 */

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

165 if (!ct82c710_port)
166 return -ENOMEM;
167
168 ct82c710_port->id.type = SERIO_8042;
169 ct82c710_port->dev.parent = &dev->dev;
170 ct82c710_port->open = ct82c710_open;
171 ct82c710_port->close = ct82c710_close;
172 ct82c710_port->write = ct82c710_write;
173 strlcpy(ct82c710_port->name, "C&T 82c710 mouse port",
173 strscpy(ct82c710_port->name, "C&T 82c710 mouse port",
174 sizeof(ct82c710_port->name));
175 snprintf(ct82c710_port->phys, sizeof(ct82c710_port->phys),
176 "isa%16llx/serio0", (unsigned long long)CT82C710_DATA);
177
178 serio_register_port(ct82c710_port);
179
180 printk(KERN_INFO "serio: C&T 82c710 mouse port at %#llx irq %d\n",
181 (unsigned long long)CT82C710_DATA, CT82C710_IRQ);

--- 63 unchanged lines hidden ---
174 sizeof(ct82c710_port->name));
175 snprintf(ct82c710_port->phys, sizeof(ct82c710_port->phys),
176 "isa%16llx/serio0", (unsigned long long)CT82C710_DATA);
177
178 serio_register_port(ct82c710_port);
179
180 printk(KERN_INFO "serio: C&T 82c710 mouse port at %#llx irq %d\n",
181 (unsigned long long)CT82C710_DATA, CT82C710_IRQ);

--- 63 unchanged lines hidden ---