rmi_f03.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) rmi_f03.c (a9f08ad7adb3d2f90e11efbb40a1246ef95b0c04)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2015-2016 Red Hat
4 * Copyright (C) 2015 Lyude Paul <thatslyude@gmail.com>
5 */
6
7#include <linux/kernel.h>
8#include <linux/slab.h>

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

176 return -ENOMEM;
177
178 serio->id.type = SERIO_PS_PSTHRU;
179 serio->write = rmi_f03_pt_write;
180 serio->open = rmi_f03_pt_open;
181 serio->close = rmi_f03_pt_close;
182 serio->port_data = f03;
183
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2015-2016 Red Hat
4 * Copyright (C) 2015 Lyude Paul <thatslyude@gmail.com>
5 */
6
7#include <linux/kernel.h>
8#include <linux/slab.h>

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

176 return -ENOMEM;
177
178 serio->id.type = SERIO_PS_PSTHRU;
179 serio->write = rmi_f03_pt_write;
180 serio->open = rmi_f03_pt_open;
181 serio->close = rmi_f03_pt_close;
182 serio->port_data = f03;
183
184 strlcpy(serio->name, "RMI4 PS/2 pass-through", sizeof(serio->name));
184 strscpy(serio->name, "RMI4 PS/2 pass-through", sizeof(serio->name));
185 snprintf(serio->phys, sizeof(serio->phys), "%s/serio0",
186 dev_name(&f03->fn->dev));
187 serio->dev.parent = &f03->fn->dev;
188
189 f03->serio = serio;
190
191 printk(KERN_INFO "serio: %s port at %s\n",
192 serio->name, dev_name(&f03->fn->dev));

--- 136 unchanged lines hidden ---
185 snprintf(serio->phys, sizeof(serio->phys), "%s/serio0",
186 dev_name(&f03->fn->dev));
187 serio->dev.parent = &f03->fn->dev;
188
189 f03->serio = serio;
190
191 printk(KERN_INFO "serio: %s port at %s\n",
192 serio->name, dev_name(&f03->fn->dev));

--- 136 unchanged lines hidden ---