pcips2.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) pcips2.c (a9f08ad7adb3d2f90e11efbb40a1246ef95b0c04)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/drivers/input/serio/pcips2.c
4 *
5 * Copyright (C) 2003 Russell King, All Rights Reserved.
6 *
7 * I'm not sure if this is a generic PS/2 PCI interface or specific to
8 * the Mobility Electronics docking station.

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

144 goto release;
145 }
146
147
148 serio->id.type = SERIO_8042;
149 serio->write = pcips2_write;
150 serio->open = pcips2_open;
151 serio->close = pcips2_close;
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/drivers/input/serio/pcips2.c
4 *
5 * Copyright (C) 2003 Russell King, All Rights Reserved.
6 *
7 * I'm not sure if this is a generic PS/2 PCI interface or specific to
8 * the Mobility Electronics docking station.

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

144 goto release;
145 }
146
147
148 serio->id.type = SERIO_8042;
149 serio->write = pcips2_write;
150 serio->open = pcips2_open;
151 serio->close = pcips2_close;
152 strlcpy(serio->name, pci_name(dev), sizeof(serio->name));
153 strlcpy(serio->phys, dev_name(&dev->dev), sizeof(serio->phys));
152 strscpy(serio->name, pci_name(dev), sizeof(serio->name));
153 strscpy(serio->phys, dev_name(&dev->dev), sizeof(serio->phys));
154 serio->port_data = ps2if;
155 serio->dev.parent = &dev->dev;
156 ps2if->io = serio;
157 ps2if->dev = dev;
158 ps2if->base = pci_resource_start(dev, 0);
159
160 pci_set_drvdata(dev, ps2if);
161

--- 56 unchanged lines hidden ---
154 serio->port_data = ps2if;
155 serio->dev.parent = &dev->dev;
156 ps2if->io = serio;
157 ps2if->dev = dev;
158 ps2if->base = pci_resource_start(dev, 0);
159
160 pci_set_drvdata(dev, ps2if);
161

--- 56 unchanged lines hidden ---