summaryrefslogtreecommitdiff
path: root/drivers/input/gameport/fm801-gp.c
AgeCommit message (Collapse)Author
2024-06-07Input: gameport - use sizeof(*pointer) instead of sizeof(type)Erick Archer
It is preferred to use sizeof(*pointer) instead of sizeof(type) due to the type of the variable can change and one needs not change the former (unlike the latter). This patch has no effect on runtime behavior. Signed-off-by: Erick Archer <erick.archer@outlook.com> Link: https://lore.kernel.org/r/PAXPR02MB72483F512F863C74A4AECA2B8BFB2@PAXPR02MB7248.eurprd02.prod.outlook.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2019-05-24treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61Thomas Gleixner
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details you should have received a copy of the gnu general public license along with this program if not write to the free software foundation inc 675 mass ave cambridge ma 02139 usa extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 441 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc) Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190520071858.739733335@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-01-06Input: delete non-required instances of include <linux/init.h>Paul Gortmaker
None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2012-11-24Input: remove use of __devexitBill Pemberton
CONFIG_HOTPLUG is going away as an option so __devexit is no longer needed. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2012-11-24Input: remove use of __devinitBill Pemberton
CONFIG_HOTPLUG is going away as an option so __devinit is no longer needed. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2012-11-24Input: remove use of __devexit_pBill Pemberton
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer needed. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2012-04-21Input: use module_pci_driverAxel Lin
This patch converts the drivers in drivers/input/* to use module_pci_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-09-29Input: fm801-gp - add missing call to pci_disable_device()Dmitry Torokhov
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-01-09Input: make PCI device ids constantMárton Németh
The id_table field of the struct pci_driver is constant in <linux/pci.h> so it makes sense to mark initialization data also constant. Signed-off-by: Márton Németh <nm127@freemail.hu> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2009-04-17Input: fp801-gp - add MODULE_DESCRIPTION()Dmitry Torokhov
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2006-10-12Input: fm801-gp - handle errors from pci_enable_device()Jeff Garzik
Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2006-07-06Input: fm801-gp - fix use after freeDmitry Torokhov
Fixes Coverity #id 916 Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2005-09-07[PATCH] input: convert kcalloc to kzallocPekka Enberg
This patch converts kcalloc(1, ...) calls to use the new kzalloc() function. Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Cc: Vojtech Pavlik <vojtech@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-03-07input: convert from pci_module_init to pci_register_driverChristophe Lucas
Signed-off-by: Christophe Lucas <c.lucas@ifrance.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
2005-02-10Input: convert input/gameport to dynamic gameport allocation.Dmitry Torokhov
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2005-02-04Input: Make some needlessly global code static.Adrian Bunk
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
2004-12-11[PATCH] fm801_gp_probe: fix use after freeAdrian Bunk
The patch below by "Petri T. Koistinen" <petri.koistinen@iki.fi> in Rusty's trivial patches is IMHO a candidate for 2.6.10 . Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-10[PATCH] Remove spaces from PCI gameport pci_driver.name fieldsDeepak Saxena
Signed-off-by: Deepak Saxena <dsaxena@plexity.net> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
2004-05-09Input: trailing whitespace fixes in drivers/input/gameportDmitry Torokhov
2003-10-21[PATCH] Add needed __devexit_p's to two gameport driversAndrew Morton
From: "Noah J. Misch" <noah@caltech.edu> Two gameport drivers need __devexit_p wrapped around their remove functions. A newer binutils caught this is a link error. This patch fixes that. Wrapped a __devexit_p around the 'remove' functions of two gameport drivers. The lack of __devexit_p was wrong according to linux/init.h, differed from the practices in nearby files, and caused a link error with binutils 2.14.90.0.5.
2003-08-17Fix more drivers that broke due to losing the 'name' entry.Linus Torvalds
2003-08-01[PATCH] janitor: convert to pci_name()Randy Dunlap
[ GregKH has already done this is USB and PCI core. ] From: "Warren A. Layton" <zeevon@debian.org> Based on a request from Matthew Wilcox, convert instances of pci_dev->slot_name to use pci_name() instead: "In order to support PCI Domains, we have to stop using slot_name. It's related to driver model transition too since pci_dev->slot_name was redundant with pci_dev->dev.bus_id. So I introduced the inline function pci_name(). Now there's about 300-400 places in the tree that're using slot_name which need to be converted to use pci_name(). once that's done, we can remove the slot_name pointer in pci_dev and save a (void *) per pci_dev."
2003-07-31[PATCH] PCI: pci_device_id can not be marked __devinitdata.Greg Kroah-Hartman
Fixes up drivers/input/* drivers/isdn/* drivers/media/* drivers/mtd/* drivers/parisc/* drivers/pci/* drivers/parport/* drivers/scsi/* and drivers/serial/*
2002-11-25[PATCH] make some gameports compile againAlan Cox
2002-07-25Apply Rusty's C99 initializer patch to input drivers.Vojtech Pavlik
Fix cli() breakage in input (gameport) drivers.
2002-07-25This patch by Brad Hards replaces the four id* fields of the inputVojtech Pavlik
struct by a single struct to simplify passing it around and to userspace.
2002-07-04Add vortex anf fm801 gameport drivers, remove obsolete pcigame driver.Vojtech Pavlik