linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Integrate better device support
@ 2012-01-27 15:47 David Herrmann
  2012-01-27 15:47 ` [PATCH 1/4] Bluetooth: Introduce to_hci_dev() David Herrmann
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: David Herrmann @ 2012-01-27 15:47 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: johan.hedberg, marcel, David Herrmann

Hi

"struct device" provides a drvdata-field that we should use properly to save
_driver-data_. This series makes the hci-core use pointer-arithmetic to avoid
using this field in the bus-core and instead converts the drivers to use the
drvdata field.
This also reduces the hci_dev structure by 4/8 bytes, yeah.

This behavior is very common and I tried to stick to naming-conventions. See the
usb-bus or input-bus for other examples.

Regards
David

David Herrmann (4):
  Bluetooth: Introduce to_hci_dev()
  Bluetooth: Remove hci_dev->driver_data
  Bluetooth: Introduce to_hci_conn
  Bluetooth: Use proper datatypes in release-callbacks

 drivers/bluetooth/bfusb.c          |   10 ++++----
 drivers/bluetooth/bluecard_cs.c    |   12 ++++----
 drivers/bluetooth/bpa10x.c         |   18 +++++++-------
 drivers/bluetooth/bt3c_cs.c        |    6 ++--
 drivers/bluetooth/btmrvl_debugfs.c |   26 +++++++++----------
 drivers/bluetooth/btmrvl_main.c    |   10 ++++----
 drivers/bluetooth/btsdio.c         |   10 ++++----
 drivers/bluetooth/btuart_cs.c      |    6 ++--
 drivers/bluetooth/btusb.c          |   28 ++++++++++----------
 drivers/bluetooth/btwilink.c       |    8 +++---
 drivers/bluetooth/dtl1_cs.c        |    6 ++--
 drivers/bluetooth/hci_ldisc.c      |    6 ++--
 drivers/bluetooth/hci_vhci.c       |    8 +++---
 include/net/bluetooth/hci_core.h   |   14 ++++++++++-
 net/bluetooth/hci_sysfs.c          |   47 ++++++++++++++++-------------------
 15 files changed, 111 insertions(+), 104 deletions(-)

-- 
1.7.8.4

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2012-02-09 21:12 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-27 15:47 [PATCH 0/4] Integrate better device support David Herrmann
2012-01-27 15:47 ` [PATCH 1/4] Bluetooth: Introduce to_hci_dev() David Herrmann
2012-01-30 21:55   ` Marcel Holtmann
2012-01-27 15:47 ` [PATCH 2/4] Bluetooth: Remove hci_dev->driver_data David Herrmann
2012-01-27 16:51   ` Anderson Lizardo
2012-01-27 16:56     ` David Herrmann
2012-01-27 17:01       ` [PATCH 2/4 v2] " David Herrmann
2012-01-30 21:57         ` Marcel Holtmann
2012-01-27 15:47 ` [PATCH 3/4] Bluetooth: Introduce to_hci_conn David Herrmann
2012-01-27 17:01   ` Andrei Emeltchenko
2012-01-27 17:20     ` David Herrmann
2012-01-30 21:37       ` Ulisses Furquim
2012-01-30 21:59   ` Marcel Holtmann
2012-01-27 15:47 ` [PATCH 4/4] Bluetooth: Use proper datatypes in release-callbacks David Herrmann
2012-01-30 22:00   ` Marcel Holtmann
2012-02-06 12:34 ` [PATCH 0/4] Integrate better device support Andrei Emeltchenko
2012-02-06 14:03   ` David Herrmann
2012-02-09 21:12   ` David Herrmann

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).