]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Use separate function for BCM92035 vendor setup
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 10 Apr 2013 15:11:35 +0000 (08:11 -0700)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 11 Apr 2013 19:34:10 +0000 (16:34 -0300)
commitb3f70f90b5f63cff919d6ff2dfeea96125d1e0cb
treeb22a3535959205a4a0ecaa36173f6a8d0da2f4e0
parent6585ad05fb3abb43deb53f21f9d7203810aed2f4
Bluetooth: Use separate function for BCM92035 vendor setup

Trying to squeeze every single vendor setup routine into the same function
and have it assigned all the time is actually a bad idea. Especially since
the core can handle the absence of a setup routine perfectly fine.

To make this a lot simpler for future additions of vendor setup code,
split the BCM92035 setup into its own function and only assign it when
this specific device has been detected.

Doing it like this has the nice side benefit that we do not have to keep
a copy of the driver_info around.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
drivers/bluetooth/btusb.c