linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
To: Martin Costabel <costabel@wanadoo.fr>, Paul.Mackerras@cs.anu.edu.au
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: vger-2.3.15 on pmac
Date: Fri, 27 Aug 1999 03:01:53 +0200	[thread overview]
Message-ID: <99082703052100.00447@ns1102.munich.netsurf.de> (raw)
In-Reply-To: <99082700153800.01224@ns1102.munich.netsurf.de>


Am Fre, 27 Aug 1999 schrieb Franz Sirl:
>- convert adb_mouse_setup to new style (compiles, but not tested yet)

AAARGH! Everything has changed with the setup code. Use the following diff
for the adb_mouse_setup routine:

@@ -174,16 +193,22 @@ __initfunc(int adb_mouse_init(void))
  * option, which is about using ADB keyboard buttons to emulate
  * mouse buttons. -- paulus
  */
-__initfunc(void adb_mouse_setup(char *str, int *ints))
+static int __init adb_mouse_setup(char *str)
 {
+       int ints[4];
+
+       str = get_options(str,ARRAY_SIZE(ints),ints);
        if (ints[0] >= 1) {
-               adb_emulate_buttons = ints[1] > 0;
-               if (ints[1] > 1)
-                       adb_button2_keycode = ints[1];
+               adb_emulate_buttons = ints[1];
                if (ints[0] >= 2)
-                       adb_button3_keycode = ints[2];
+                       adb_button2_keycode = ints[2];
+               if (ints[0] >= 3)
+                       adb_button3_keycode = ints[3];
        }
+       return 1;
 }
+
+__setup("adb_buttons=", adb_mouse_setup);

 #ifdef MODULE
 int init_module(void)

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

  reply	other threads:[~1999-08-27  1:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-26  8:40 vger-2.3.15 on pmac Martin Costabel
1999-08-26  8:55 ` Geert Uytterhoeven
1999-08-26 16:25 ` Franz Sirl
     [not found]   ` <37C57094.D6415E54@wanadoo.fr>
1999-08-26 22:01     ` Franz Sirl
1999-08-27  1:01       ` Franz Sirl [this message]
1999-08-27  8:24         ` Martin Costabel
1999-08-27  8:52           ` Martin Costabel
1999-08-27  9:21           ` Benjamin Herrenschmidt
1999-08-27 17:25   ` Martin Costabel
1999-08-28 11:30     ` Geert Uytterhoeven
1999-08-26 16:25 ` vger-2.3.15 and ADB_MOUSE Martin Costabel

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=99082703052100.00447@ns1102.munich.netsurf.de \
    --to=franz.sirl-kernel@lauterbach.com \
    --cc=Paul.Mackerras@cs.anu.edu.au \
    --cc=costabel@wanadoo.fr \
    --cc=linuxppc-dev@lists.linuxppc.org \
    /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;
as well as URLs for NNTP newsgroup(s).