The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Oliver Neukum <oliver@neukum.org>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	linux-kernel@vger.kernel.org, linux-input@vger.kernel.org
Subject: Re: [RFC PATCH] input: Add wiichuck driver
Date: Sat, 14 May 2011 21:17:50 +0200	[thread overview]
Message-ID: <201105142117.50529.oliver@neukum.org> (raw)
In-Reply-To: <20110512042218.12859.66600.stgit@localhost6.localdomain6>

Am Donnerstag, 12. Mai 2011, 06:29:44 schrieb Grant Likely:
> +static void wiichuck_poll(struct input_polled_dev *poll_dev)
> +{
> +       struct wiichuck_device *wiichuck = poll_dev->private;
> +       struct i2c_client *i2c = wiichuck->i2c_client;
> +       static uint8_t cmd_byte = 0;
> +       struct i2c_msg cmd_msg =
> +               { .addr = i2c->addr, .len = 1, .buf = &cmd_byte };
> +       uint8_t b[6];
> +       struct i2c_msg data_msg =
> +               { .addr = i2c->addr, .flags = I2C_M_RD, .len = 6, .buf = b };


Do you need these buffers to be capable of DMA?

	Regards
		Oliver

  parent reply	other threads:[~2011-05-14 19:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-12  4:29 [RFC PATCH] input: Add wiichuck driver Grant Likely
2011-05-12  6:24 ` simon
2011-05-15 21:17   ` Grant Likely
2011-05-14 19:17 ` Oliver Neukum [this message]
2011-05-14 19:20   ` Grant Likely
2011-05-16 16:44 ` Dmitry Torokhov
2011-05-16 18:31   ` Grant Likely
2011-05-16 19:44     ` Dmitry Torokhov
2011-05-16 21:01       ` Grant Likely

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=201105142117.50529.oliver@neukum.org \
    --to=oliver@neukum.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=grant.likely@secretlab.ca \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@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