From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Michael Schmitz <schmitz@biophys.uni-duesseldorf.de>
Cc: Linux/m68k <linux-m68k@vger.kernel.org>
Subject: atari_mouse_interrupt_hook (was: Re: [PATCH/RFC] atafb and panning)
Date: Tue, 16 Dec 2008 21:49:13 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.64.0812162144140.29433@anakin> (raw)
In-Reply-To: <alpine.DEB.1.00.0812150457400.29644@zirkon.biophys.uni-duesseldorf.de>
On Mon, 15 Dec 2008, Michael Schmitz wrote:
> > > That's gotta be from ARAnyM. But I've got another bummer for you: The Atari
> > > keyboard driver calls atari_mouse_interrupt_hook if it's set, not
> > > atari_input_mouse_interrupt_hook. Fix below.
> >
> > Euh, what does this mean?
> >
> > Who should use atari_mouse_interrupt_hook (no users left)?
>
> No one should be using atari_mouse_interrupt_hook anymore so it can be killed
> off. I probably renamed the hook in all but that one place following a
> recommendation from the list. My bad, as usual.
Looks like you missed one more spot, so I came up with this. OK?
commit 896d2f2715d1fadd4c510c4125b1e4c0f1918f6f
Author: Michael Schmitz <schmitz@biophys.uni-duesseldorf.de>
Date: Tue Dec 16 21:26:03 2008 +0100
atari: Use the correct mouse interrupt hook
The Atari keyboard driver calls atari_mouse_interrupt_hook if it's set, not
atari_input_mouse_interrupt_hook. Fix below.
[geert] Killed off atari_mouse_interrupt_hook completely, after fixing another
incorrect assignment in atarimouse.c.
Signed-off-by: Michael Schmitz <schmitz@debian.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
diff --git a/arch/m68k/atari/atakeyb.c b/arch/m68k/atari/atakeyb.c
index c038b7c..2c16dcb 100644
--- a/arch/m68k/atari/atakeyb.c
+++ b/arch/m68k/atari/atakeyb.c
@@ -37,13 +37,10 @@ extern unsigned int keymap_count;
/* Hook for MIDI serial driver */
void (*atari_MIDI_interrupt_hook) (void);
-/* Hook for mouse driver */
-void (*atari_mouse_interrupt_hook) (char *);
/* Hook for keyboard inputdev driver */
void (*atari_input_keyboard_interrupt_hook) (unsigned char, char);
/* Hook for mouse inputdev driver */
void (*atari_input_mouse_interrupt_hook) (char *);
-EXPORT_SYMBOL(atari_mouse_interrupt_hook);
EXPORT_SYMBOL(atari_input_keyboard_interrupt_hook);
EXPORT_SYMBOL(atari_input_mouse_interrupt_hook);
@@ -264,8 +261,8 @@ repeat:
kb_state.buf[kb_state.len++] = scancode;
if (kb_state.len == 3) {
kb_state.state = KEYBOARD;
- if (atari_mouse_interrupt_hook)
- atari_mouse_interrupt_hook(kb_state.buf);
+ if (atari_input_mouse_interrupt_hook)
+ atari_input_mouse_interrupt_hook(kb_state.buf);
}
break;
diff --git a/drivers/input/mouse/atarimouse.c b/drivers/input/mouse/atarimouse.c
index adf45b3..a57143c 100644
--- a/drivers/input/mouse/atarimouse.c
+++ b/drivers/input/mouse/atarimouse.c
@@ -108,7 +108,7 @@ static int atamouse_open(struct input_dev *dev)
static void atamouse_close(struct input_dev *dev)
{
ikbd_mouse_disable();
- atari_mouse_interrupt_hook = NULL;
+ atari_input_mouse_interrupt_hook = NULL;
}
static int __init atamouse_init(void)
diff --git a/include/asm-m68k/atarikb.h b/include/asm-m68k/atarikb.h
index 546e7da..68f3622 100644
--- a/include/asm-m68k/atarikb.h
+++ b/include/asm-m68k/atarikb.h
@@ -34,8 +34,6 @@ void ikbd_joystick_disable(void);
/* Hook for MIDI serial driver */
extern void (*atari_MIDI_interrupt_hook) (void);
-/* Hook for mouse driver */
-extern void (*atari_mouse_interrupt_hook) (char *);
/* Hook for keyboard inputdev driver */
extern void (*atari_input_keyboard_interrupt_hook) (unsigned char, char);
/* Hook for mouse inputdev driver */
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
next prev parent reply other threads:[~2008-12-16 20:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-16 21:36 [PATCH/RFC] atafb and panning Geert Uytterhoeven
2008-11-16 23:22 ` Petr Stehlík
2008-11-19 7:37 ` Michael Schmitz
2008-11-19 8:15 ` Geert Uytterhoeven
2008-11-19 8:51 ` Petr Stehlik
2008-11-22 7:16 ` Michael Schmitz
2008-11-22 8:45 ` Petr Stehlík
2008-11-23 13:03 ` Geert Uytterhoeven
[not found] ` <1227379735.6118.10.camel@joy>
[not found] ` <Pine.LNX.4.64.0811232242480.30025@anakin>
[not found] ` <alpine.DEB.1.00.0811240050090.15319@zirkon.biophys.uni-duesseldorf.de>
[not found] ` <Pine.LNX.4.64.0812141725090.5936@anakin>
[not found] ` <alpine.DEB.1.00.0812150457400.29644@zirkon.biophys.uni-duesseldorf.de>
2008-12-16 20:49 ` Geert Uytterhoeven [this message]
2008-12-17 1:13 ` atari_mouse_interrupt_hook (was: Re: [PATCH/RFC] atafb and panning) Michael Schmitz
2008-11-23 2:38 ` [PATCH/RFC] atafb and panning Michael Schmitz
2008-11-23 10:34 ` fbtest (was: Re: [PATCH/RFC] atafb and panning) Geert Uytterhoeven
2008-11-23 23:05 ` Michael Schmitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0812162144140.29433@anakin \
--to=geert@linux-m68k.org \
--cc=linux-m68k@vger.kernel.org \
--cc=schmitz@biophys.uni-duesseldorf.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox