[PATCH v2 3/3] Bluetooth: hci_bcm: Add serdev support
Sebastian Reichel
sebastian.reichel at collabora.co.uk
Tue Aug 1 01:51:32 PDT 2017
Hi,
On Tue, Aug 01, 2017 at 10:38:24AM +0200, Loic Poulain wrote:
> [...]
> + err = of_property_read_u32(serdev->dev.of_node, "max-speed", &speed);
> + if (!err)
> + bcmdev->hu.oper_speed = speed;
> [...]
I suggest to use device_property_read_u32() here and include
<linux/property.h> instead of <linux/of.h>. This way the
serdev support is not DT specific.
-- Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-rpi-kernel/attachments/20170801/d6d44361/attachment.sig>
More information about the linux-rpi-kernel
mailing list