diff options
| author | Andrey Yurovsky <andrey@snupi.com> | 2014-12-17 16:14:42 -0500 |
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2014-12-18 18:19:25 -0500 |
| commit | 7598968d6fdbe8960b941246cc6ebef725899c59 (patch) | |
| tree | 6fd7ecbcf5acc69d90396ec5bfb4ea1ed785a25f /drivers/net/ieee802154 | |
| parent | 2a100501605461dab8e59ec6c642075dcac672aa (diff) | |
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>
Diffstat (limited to 'drivers/net/ieee802154')
| -rw-r--r-- | drivers/net/ieee802154/at86rf230.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 2ebaba34e408..b37c0249080d 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at86rf230.c | |||
| @@ -1421,7 +1421,7 @@ at86rf230_detect_device(struct at86rf230_local *lp) | |||
| 1421 | if (rc) | 1421 | if (rc) |
| 1422 | return rc; | 1422 | return rc; |
| 1423 | 1423 | ||
| 1424 | rc = __at86rf230_read(lp, RG_PART_NUM, &version); | 1424 | rc = __at86rf230_read(lp, RG_VERSION_NUM, &version); |
| 1425 | if (rc) | 1425 | if (rc) |
| 1426 | return rc; | 1426 | return rc; |
| 1427 | 1427 | ||
