]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_bcm: improve use of gpios API
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 12 Aug 2015 07:20:56 +0000 (09:20 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 12 Aug 2015 14:35:44 +0000 (16:35 +0200)
commit34f2116c02bae56fc5e00d78e65f70f16f6c7566
tree247152b0833b0d56a2e63e75f91565f2cbe6d229
parent6af5c128858c34db6a6af617861a8acbf55411bb
Bluetooth: hci_bcm: improve use of gpios API

devm_gpiod_get currently has an optional parameter to set initial
direction and value for the requested gpio. Make use of this to simplify
the driver and make it not fail to build when this parameter is made
mandatory (which is scheduled for 4.3-rc1).

Moreover use the _optional variant of devm_gpiod_get to simplify error
handling (which also gets more strict for free).

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_bcm.c