sun4i-ps2.c (e77bc7dc9af0ec53996367b2053dfafee83b7edb) sun4i-ps2.c (a9f08ad7adb3d2f90e11efbb40a1246ef95b0c04)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Driver for Allwinner A10 PS2 host controller
4 *
5 * Author: Vishnu Patekar <vishnupatekar0510@gmail.com>
6 * Aaron.maoye <leafy.myeh@newbietech.com>
7 */
8

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

251 }
252
253 serio->id.type = SERIO_8042;
254 serio->write = sun4i_ps2_write;
255 serio->open = sun4i_ps2_open;
256 serio->close = sun4i_ps2_close;
257 serio->port_data = drvdata;
258 serio->dev.parent = dev;
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Driver for Allwinner A10 PS2 host controller
4 *
5 * Author: Vishnu Patekar <vishnupatekar0510@gmail.com>
6 * Aaron.maoye <leafy.myeh@newbietech.com>
7 */
8

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

251 }
252
253 serio->id.type = SERIO_8042;
254 serio->write = sun4i_ps2_write;
255 serio->open = sun4i_ps2_open;
256 serio->close = sun4i_ps2_close;
257 serio->port_data = drvdata;
258 serio->dev.parent = dev;
259 strlcpy(serio->name, dev_name(dev), sizeof(serio->name));
260 strlcpy(serio->phys, dev_name(dev), sizeof(serio->phys));
259 strscpy(serio->name, dev_name(dev), sizeof(serio->name));
260 strscpy(serio->phys, dev_name(dev), sizeof(serio->phys));
261
262 /* shutoff interrupt */
263 writel(0, drvdata->reg_base + PS2_REG_GCTL);
264
265 /* Get IRQ for the device */
266 drvdata->irq = platform_get_irq(pdev, 0);
267 if (drvdata->irq < 0) {
268 error = drvdata->irq;

--- 70 unchanged lines hidden ---
261
262 /* shutoff interrupt */
263 writel(0, drvdata->reg_base + PS2_REG_GCTL);
264
265 /* Get IRQ for the device */
266 drvdata->irq = platform_get_irq(pdev, 0);
267 if (drvdata->irq < 0) {
268 error = drvdata->irq;

--- 70 unchanged lines hidden ---