]> git.baikalelectronics.ru Git - kernel.git/commit
at86rf230: remove is212 and add driver data
authorAlexander Aring <alex.aring@gmail.com>
Wed, 2 Jul 2014 22:20:46 +0000 (00:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jul 2014 04:29:24 +0000 (21:29 -0700)
commite469678150745736a40527885d08a0bb6b61642f
treed5899ef6972c2a773e27c6c159eb1fa4b72a6185
parenta542a35e3de38f34cd33c0209c76a425d4d13a53
at86rf230: remove is212 and add driver data

This patch adds a new at86rf2xx_chip_data structure which holds device
specific attributes. Instead of runtime decisions "if (is212())" we set
callbacks/attributes while device detection.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ieee802154/at86rf230.c