diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-09-19 20:46:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-20 02:08:53 +0300 |
commit | 5345862e9af02ce3780639bfe350ed2da9f8af13 (patch) | |
tree | d0f4c250df93c70b9d664dab28435127705edffd /drivers/net/dsa/bcm_sf2_regs.h | |
parent | e85ec74ace29acfda4afdfd56df122a0a62e6a1a (diff) | |
download | linux-5345862e9af02ce3780639bfe350ed2da9f8af13.tar.xz |
net: dsa: b53: Use a macro to define I/O operations
Instead of repeating the same pattern: acquire mutex, read/write,
release mutex, define a macro: b53_build_op() which takes the type
(read|write), I/O size, and value (scalar or pointer). This helps with
fixing bugs that could exist (e.g: missing barrier, lock etc.).
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/bcm_sf2_regs.h')
0 files changed, 0 insertions, 0 deletions