drivers/input/keyboard/innovator_ps2.c:333: warning: 'block'
defined but not used
drivers/input/keyboard/innovator_ps2.c:338: warning:
'innovator_fpga_hid_lock' defined but not used
drivers/input/keyboard/innovator_ps2.c:339: warning:
'innovator_fpga_hid_busy' defined but not used
drivers/input/keyboard/innovator_ps2.c:383: warning:
'innovator_fpga_hid_clear_bits' defined but not used
drivers/input/keyboard/innovator_ps2.c:702: warning:
'verify_init' defined but not used
drivers/input/keyboard/innovator_ps2.c: In function
'innovator_ps2_resume':
drivers/input/keyboard/innovator_ps2.c:1176: warning:
'pmcomm' may be used uninitialized in this function
drivers/input/keyboard/innovator_ps2.c: In function
'innovator_ps2_suspend':
drivers/input/keyboard/innovator_ps2.c:1153: warning:
'pmcomm' may be used uninitialized in this function
Signed-off-by: Dirk Behme <dirk.behme_at_gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
static u8 buffer[JUNO_BUFFER_SIZE];
static u8 buffer[JUNO_BUFFER_SIZE];
-static u8 block[JUNO_BLOCK_SIZE];
static void do_hid_tasklet(unsigned long);
DECLARE_TASKLET(hid_tasklet, do_hid_tasklet, 0);
static struct innovator_hid_dev *hid;
static void do_hid_tasklet(unsigned long);
DECLARE_TASKLET(hid_tasklet, do_hid_tasklet, 0);
static struct innovator_hid_dev *hid;
-static spinlock_t innovator_fpga_hid_lock = SPIN_LOCK_UNLOCKED;
-static atomic_t innovator_fpga_hid_busy = ATOMIC_INIT(0);
struct innovator_hid_dev {
struct input_dev mouse, keyboard;
struct innovator_hid_dev {
struct input_dev mouse, keyboard;
innovator_fpga_hid_frob(x, x);
}
innovator_fpga_hid_frob(x, x);
}
-static void
-innovator_fpga_hid_clear_bits(u8 x)
-{
- innovator_fpga_hid_frob(x, 0);
-}
-
static void
SS(int value)
{
static void
SS(int value)
{
-static int
-verify_init(u8 * p)
-{
- return (((simple_t *)p)->cmd_code == 0x01) ? 0 : -1;
-}
-
-
/*
* Host command helper functions:
*/
/*
* Host command helper functions:
*/
static int innovator_ps2_suspend(struct device *dev, pm_message_t state)
{
static int innovator_ps2_suspend(struct device *dev, pm_message_t state)
{
/*
* Set SUS_STATE in REG_PM_COMM (Page 0 R0). This will cause
/*
* Set SUS_STATE in REG_PM_COMM (Page 0 R0). This will cause
static int innovator_ps2_resume(struct device *dev)
{
static int innovator_ps2_resume(struct device *dev)
{
/*
* Clear SUS_STATE from REG_PM_COMM (Page 0 R0).
/*
* Clear SUS_STATE from REG_PM_COMM (Page 0 R0).