Linux wireless drivers development
 help / color / mirror / Atom feed
From: "Elias, Ilan" <ilane@ti.com>
To: "lauro.venancio@openbossa.org" <lauro.venancio@openbossa.org>,
	"samuel@sortiz.org" <samuel@sortiz.org>,
	"aloisio.almeida@openbossa.org" <aloisio.almeida@openbossa.org>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: [RFC] NFC: Add num of targets to TARGETS_FOUND event
Date: Thu, 8 Dec 2011 17:13:14 +0000	[thread overview]
Message-ID: <B30D1FD582D6484ABF57420512E5803504FD0316@DNCE03.ent.ti.com> (raw)

Hi Lauro, Aloisio, Samuel, all,

It seems that when targets are found (via NFC_EVENT_TARGETS_FOUND), there is no way to know (in user space) how many targets were found in advance.

I suggest we add a new attribute NFC_ATTR_NUM_TARGETS_FOUND to the event NFC_EVENT_TARGETS_FOUND.
Otherwise, the user would have to wait until a timeut expires in order to decide that no more targets will arrive.
Please note that the knowledge of how many targets were found can be found in the variable dev->n_targets.

I'll appreciate your comments on this issue.
If you agree, I'll send out a patch for this.

Thanks & BR,
Ilan

             reply	other threads:[~2011-12-08 17:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-08 17:13 Elias, Ilan [this message]
2011-12-12 10:59 ` [RFC] NFC: Add num of targets to TARGETS_FOUND event Samuel Ortiz
2011-12-12 16:40   ` Elias, Ilan

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=B30D1FD582D6484ABF57420512E5803504FD0316@DNCE03.ent.ti.com \
    --to=ilane@ti.com \
    --cc=aloisio.almeida@openbossa.org \
    --cc=lauro.venancio@openbossa.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=samuel@sortiz.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