]> asedeno.scripts.mit.edu Git - linux.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)
commitbdc78737278ee77fdcbccaee5b6f7eda4e0e7602
tree77100c4b174f7389dc90bffa650e9faa1b185e4d
parentdaf4e2c89254ed6eb8cf7ef60f614edebfdb9f3a
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