mrf24j40: add regmap support
authorAlexander Aring <alex.aring@gmail.com>
Mon, 21 Sep 2015 09:24:30 +0000 (11:24 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 22 Sep 2015 09:51:22 +0000 (11:51 +0200)
commitb0156792001b7a19bc115dcc32aebb9b9a0b6a01
tree1a1a812770288c0bc73a2f1b63f5179069c5d0e2
parent554b49493b89b068643b7360334b40d5f5ca8ff2
mrf24j40: add regmap support

This patch introduce regmap support for short and long address space of
mrf24j40. It's only possible to use regmap_read/write/update_bits for
long address range. This is because I added lowlevel bus operation
because the write operation need to set the 12th bit to mark a register
write, but regmap only supports to set bits for register write access in
the first byte. We use other regmap register functions than
read/write/update_bits, so this should be fine.

Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/Kconfig
drivers/net/ieee802154/mrf24j40.c