at86rf230: fix register read for part version
authorAndrey Yurovsky <andrey@snupi.com>
Wed, 17 Dec 2014 21:14:42 +0000 (13:14 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 18 Dec 2014 23:19:25 +0000 (00:19 +0100)
commit7598968d6fdbe8960b941246cc6ebef725899c59
tree6fd7ecbcf5acc69d90396ec5bfb4ea1ed785a25f
parent2a100501605461dab8e59ec6c642075dcac672aa
at86rf230: fix register read for part version

The driver was reading the PART_NUM register for both the part number
(type of device) and the part version, the version is actually in
register 0x1D, VERSION_NUM.  I believe that this was a copy-paste error.

Tested on AT86RF212B where the part is detected to be the expected part
number (0x07) and version (0x03 on mine).

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