Re: [PATCH 0/2] Add API to retrieve the Bluetooth Device Address (BD_ADDR)

From: Sinan Kaya
Date: Thu Sep 20 2018 - 18:46:05 EST


On 9/20/2018 6:34 PM, Matthias Kaehlcke wrote:
On some systems the Bluetooth Device Address (BD_ADDR) isn't stored
on the Bluetooth chip itself. One way to configure the BD address is
through the device tree. The btqcomsmd driver is an example, it can
read the BD address from the DT property 'local-bd-address'. It is
also planned to extend the hci_qca driver to support setting the BD
address through the DT.

To avoid redundant open-coded reading of 'local-bd-address' and error
handling this series adds an API to retrieve the BD address of a device
and adapts the btqcomsmd driver to use this API.

I don't think you have got enough number of line savings to make this
code to be folded into property.c

Not my call but seems redundant IMO.