ams-input.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) | ams-input.c (90ab5ee94171b3e28de6bb42ee30b527014e0be7) |
---|---|
1/* 2 * Apple Motion Sensor driver (joystick emulation) 3 * 4 * Copyright (C) 2005 Stelian Pop (stelian@popies.net) 5 * Copyright (C) 2006 Michael Hanselmann (linux-kernel@hansmi.ch) 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 5 unchanged lines hidden (view full) --- 14 15#include <linux/types.h> 16#include <linux/errno.h> 17#include <linux/init.h> 18#include <linux/delay.h> 19 20#include "ams.h" 21 | 1/* 2 * Apple Motion Sensor driver (joystick emulation) 3 * 4 * Copyright (C) 2005 Stelian Pop (stelian@popies.net) 5 * Copyright (C) 2006 Michael Hanselmann (linux-kernel@hansmi.ch) 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 5 unchanged lines hidden (view full) --- 14 15#include <linux/types.h> 16#include <linux/errno.h> 17#include <linux/init.h> 18#include <linux/delay.h> 19 20#include "ams.h" 21 |
22static unsigned int joystick; | 22static bool joystick; |
23module_param(joystick, bool, S_IRUGO); 24MODULE_PARM_DESC(joystick, "Enable the input class device on module load"); 25 | 23module_param(joystick, bool, S_IRUGO); 24MODULE_PARM_DESC(joystick, "Enable the input class device on module load"); 25 |
26static unsigned int invert; | 26static bool invert; |
27module_param(invert, bool, S_IWUSR | S_IRUGO); 28MODULE_PARM_DESC(invert, "Invert input data on X and Y axis"); 29 30static DEFINE_MUTEX(ams_input_mutex); 31 32static void ams_idev_poll(struct input_polled_dev *dev) 33{ 34 struct input_dev *idev = dev->input; --- 123 unchanged lines hidden --- | 27module_param(invert, bool, S_IWUSR | S_IRUGO); 28MODULE_PARM_DESC(invert, "Invert input data on X and Y axis"); 29 30static DEFINE_MUTEX(ams_input_mutex); 31 32static void ams_idev_poll(struct input_polled_dev *dev) 33{ 34 struct input_dev *idev = dev->input; --- 123 unchanged lines hidden --- |