]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit45b376edf5e01617466b3b89d0c3e4d2dee111b0
tree1a1a812770288c0bc73a2f1b63f5179069c5d0e2
parent8536abc0c1d5a0a21585675e5fc0ad15937d4f8f
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