From: David Scherba <dscherba@codeaurora.org>
To: johan.hedberg@gmail.com
Cc: linux-bluetooth@vger.kernel.org, marcel@holtmann.org,
rshaffer@codeaurora.org
Subject: Re: [PATCH 2/2] Use HCI device type to gate BR/EDR-specific HCI commands
Date: Tue, 10 Aug 2010 14:49:19 -0500 [thread overview]
Message-ID: <4C61AD3F.4000302@codeaurora.org> (raw)
In-Reply-To: <20100810191616.GA26091@jh-x301>
On 8/10/2010 2:16 PM, Johan Hedberg wrote:
>> +static inline int ignore_device(struct hci_dev_info *di)
>> +{
>> + return hci_test_bit(HCI_RAW,&di->flags) || di->type>> 4 != HCI_BREDR;
>> +}
>
> Since this is hci_lib.h (something I didn't realize in the previous
> review) the function should follow the same namespace as all other
> functions in the header file, i.e. hci_*. However, does the function
> really need to be exported in this public library header file, i.e.
> isn't there some private header file that could be used instead?
It looks like src/hcid.h fits the bill, although the modified hcid.h
will need to include the hci headers to have the appropriate defines...
Modified patch coming up.
Thanks,
David
--
David Scherba
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
next prev parent reply other threads:[~2010-08-10 19:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-10 15:15 [PATCH v2 0/2] Use HCI device type to determine suitability of HCI commands David Scherba
2010-08-10 15:15 ` [PATCH 1/2] Remove non-functional hci_devinfo calls in init_device() David Scherba
2010-08-10 19:20 ` Johan Hedberg
2010-08-10 15:15 ` [PATCH 2/2] Use HCI device type to gate BR/EDR-specific HCI commands David Scherba
2010-08-10 15:44 ` David Scherba
2010-08-10 15:45 ` David Scherba
2010-08-10 19:16 ` Johan Hedberg
2010-08-10 19:49 ` David Scherba [this message]
2010-08-10 19:51 ` [PATCH 1/1] " David Scherba
2010-08-10 20:15 ` Johan Hedberg
-- strict thread matches above, loose matches on Subject: below --
2010-08-09 21:07 [PATCH 0/2] Use HCI device type to determine suitability of " David Scherba
2010-08-09 21:07 ` [PATCH 2/2] Use HCI device type to gate BR/EDR-specific " David Scherba
2010-08-09 21:59 ` Johan Hedberg
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=4C61AD3F.4000302@codeaurora.org \
--to=dscherba@codeaurora.org \
--cc=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=rshaffer@codeaurora.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).