]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
at86rf230: init xtal_trim with zero
authorAlexander Aring <alex.aring@gmail.com>
Sat, 7 Mar 2015 21:07:07 +0000 (22:07 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 14 Mar 2015 16:11:31 +0000 (17:11 +0100)
commite3721749000e11ba3f315efc5c98bf4cd5662f99
treead0ee375c20e51331bf855ee9874537c33b2d040
parent3f3c4bb5ec7c645d1151e1e8d6e56c71a050cf85
at86rf230: init xtal_trim with zero

This patch initialize xtal_trim value to zero. The xtal_trim property is
an optional device tree value. Currently if no xtal_trim property is
given the xtal_trim value can be contain random data, because it's a
stack variable. This patch init the xtal_trim value to zero which is
also the default value after reset for at86rf230 transceivers.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c