All of lore.kernel.org
 help / color / mirror / Atom feed
From: Loic Poulain <loic.poulain@intel.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: linux-bluetooth@vger.kernel.org, gaetan.prin@intel.com
Subject: Re: [PATCH 4/5] Bluetooth: hci_intel: Add intel_data_list
Date: Thu, 27 Aug 2015 19:38:34 +0200	[thread overview]
Message-ID: <55DF4B1A.60005@intel.com> (raw)
In-Reply-To: <4C16D0EB-E539-4934-B26E-38166403217A@holtmann.org>

Hi Marcel,

>> struct intel_data {
>> +	struct list_head list;
>
> this is the private data associated with the hci_uart. I am not turning this into a list.

>> +static struct intel_data *intel_data_get(struct intel_device *idev)
>> +{
>> +	struct list_head *p;
>> +
>> +	list_for_each(p, &intel_data_list) {
>> +		struct intel_data *intel = list_entry(p, struct intel_data,
>> +						      list);
>> +
>> +		/* tty device and pdev device should share the same parent
>> +		 * which is the UART port.
>> +		 */
>> +		if (intel->hu->tty->dev->parent == idev->pdev->dev.parent)
>> +			return intel;
>> +	}
>> +
>> +	return NULL;
>> +}
>> +
>
> You really need to come up with something else. intel_data is not a list. It is private data for hci_uart.
>

Do you mean having an other simple list:
struct intel_hu {
	struct list_head list;
	struct hci_uart *hu;
}

Regards,
Loic

-- 
Intel Open Source Technology Center
http://oss.intel.com/

  reply	other threads:[~2015-08-27 17:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-27 15:39 [PATCH 1/5] Bluetooth: hci_intel: Retrieve host-wake IRQ Loic Poulain
2015-08-27 15:39 ` [PATCH 2/5] Bluetooth: hci_intel: Add intel_device_get function Loic Poulain
2015-08-27 16:33   ` Marcel Holtmann
2015-08-27 15:39 ` [PATCH 3/5] Bluetooth: hci_intel: Introduce LPM support Loic Poulain
2015-08-27 16:16   ` Marcel Holtmann
2015-08-27 15:39 ` [PATCH 4/5] Bluetooth: hci_intel: Add intel_data_list Loic Poulain
2015-08-27 16:21   ` Marcel Holtmann
2015-08-27 17:38     ` Loic Poulain [this message]
2015-08-27 17:48       ` Marcel Holtmann
2015-08-27 15:39 ` [PATCH 5/5] Bluetooth: hci_intel: Implement suspend/resume Loic Poulain
2015-08-27 16:29   ` Marcel Holtmann
2015-08-27 16:18 ` [PATCH 1/5] Bluetooth: hci_intel: Retrieve host-wake IRQ Marcel Holtmann
2015-08-27 17:27   ` Loic Poulain
2015-08-27 17:47     ` Marcel Holtmann

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=55DF4B1A.60005@intel.com \
    --to=loic.poulain@intel.com \
    --cc=gaetan.prin@intel.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.