Re: [PATCH v4 1/2] Bluetooth: Add device_get_bd_address()
From: Sakari Ailus
Date: Thu Sep 27 2018 - 02:50:19 EST
On Wed, Sep 26, 2018 at 05:48:09PM -0700, Matthias Kaehlcke wrote:
> Provide an API for Bluetooth drivers to retrieve the Bluetooth Device
> address (BD_ADDR) for a device. If the firmware node of the device
> has a property 'local-bd-address' the BD address is read from this
> property.
>
> Signed-off-by: Matthias Kaehlcke <mka@xxxxxxxxxxxx>
> Reviewed-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>
> Reviewed-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
> ---
> Changes in v4:
> - move code from driver/base/property.c to net/bluetooth/lib.c
> - undo move of bdaddr_t declaration
> - merge fwnode_get_bd_address() into device_get_bd_address(). as of now
> the function is not needed, it can be created later if necessary
> - minor improvements suggested by Sakari
> - updated commit message
> - added 'Reviewed-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>' tag
>
> Changes in v3:
> - move definition of bdaddr_t to types.h to avoid include of
> bluetooth.h from property.h
> - add stubs for the new functions
>
> Changes in v2:
> - use bdaddr_t instead of byte pointer + len
> - use EXPORT_SYMBOL_GPL for the new functions instead of EXPORT_SYMBOL
> - put new functions inside #if IS_ENABLED(CONFIG_BT)
> - some new line juggling in property.h
> - added 'Reviewed-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>' tag
> ---
> include/net/bluetooth/bluetooth.h | 2 ++
> net/bluetooth/lib.c | 34 +++++++++++++++++++++++++++++++
Yeah, this seems like a better place for this stuff indeed.
Thanks!
--
Sakari Ailus
sakari.ailus@xxxxxxxxxxxxxxx