]> git.baikalelectronics.ru Git - kernel.git/commit
ieee802154/atusb: Add function for partial register writes
authorStefan Schmidt <s.schmidt@samsung.com>
Fri, 29 May 2015 08:51:25 +0000 (10:51 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 31 May 2015 11:40:53 +0000 (13:40 +0200)
commit0f913b1da678849e1356ba02e24809f27a981fea
tree77100c4b174f7389dc90bffa650e9faa1b185e4d
parent183e062b7d8d85bf0817672777c30c5739893f0e
ieee802154/atusb: Add function for partial register writes

With this function we can set individual bits in the registers if needed.
With the old SR_VALUE macro we could only set one bit in the register
which was ok for some scenarios but not for all. With this subreg write
function we can now set more bits defined by the mask while not touching
the rest.

We start using it for the current SR_VALUE use case and will use it more
in upcoming patches.

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