From: Mike Frysinger <vapier@gentoo.org>
To: Adrian McMenamin <adrian@newgolddream.dyndns.info>
Cc: dtor@insightbb.com, Paul Mundt <lethal@users.sourceforge.net>,
linux-sh <linux-sh@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/2] SH/Dreamcast - joystick (Control pad)
Date: Mon, 11 Feb 2008 00:22:28 +0000 [thread overview]
Message-ID: <200802101922.29214.vapier@gentoo.org> (raw)
In-Reply-To: <1202684222.6237.9.camel@localhost.localdomain>
[-- Attachment #1: Type: text/plain, Size: 985 bytes --]
On Sunday 10 February 2008, Adrian McMenamin wrote:
> +static int dc_pad_connect(struct maple_device *mdev)
> +{
> + ...
> + if (data&(1<<i) && abs_bit[i] >= 0)
could use a few spaces in that first expression
> +/* allow the controller to be used */
> +static int probe_maple_controller(struct device *dev)
> +{
> + struct maple_device *mdev = to_maple_dev(dev);
> + struct maple_driver *mdrv = to_maple_driver(dev->driver);
> + int error;
> +
> + error = dc_pad_connect(mdev);
> + if (error)
> + return error;
> +
> + mdev->driver = mdrv;
> +
> + return 0;
> +}
> +
> +static struct maple_driver dc_pad_driver = {
> + .function = MAPLE_FUNC_CONTROLLER,
> + .connect = dc_pad_connect,
> + .disconnect = dc_pad_disconnect,
> + .drv = {
> + .name = "Dreamcast_controller",
> + .probe = probe_maple_controller,
> + },
> +};
no remove function ? looks like the probe() forces a connect, but there's no
remove() to force a disconnect ...
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 827 bytes --]
next prev parent reply other threads:[~2008-02-11 0:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-10 22:57 [PATCH 1/2] SH/Dreamcast - joystick (Control pad) Adrian McMenamin
2008-02-10 23:05 ` [PATCH 2/2] SH/Dreamcast - joystick (controlpad) Adrian McMenamin
2008-02-11 0:22 ` Mike Frysinger [this message]
2008-02-11 14:20 ` [PATCH 1/2] SH/Dreamcast - joystick (Control pad) Adrian McMenamin
2008-02-11 15:58 ` Dmitry Torokhov
2008-02-11 16:19 ` Mike Frysinger
2008-02-11 16:25 ` Dmitry Torokhov
2008-02-11 16:29 ` Adrian McMenamin
2008-02-11 16:45 ` Mike Frysinger
2008-02-11 16:13 ` Dmitry Torokhov
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=200802101922.29214.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=adrian@newgolddream.dyndns.info \
--cc=dtor@insightbb.com \
--cc=lethal@users.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sh@vger.kernel.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