staging: ccree: resolve possible macro issue in cc_hal.h
Wrapping "offset" in macro definition to resolve checkpatch issue, ie: CHECK: Macro argument 'offset' may be better as '(offset)' to avoid precedence issues Signed-off-by: Matthew Giassa <matthew@giassa.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f8aad3595b
commit
3477f15a85
|
@ -26,7 +26,8 @@
|
|||
#define READ_REGISTER(_addr) ioread32((_addr))
|
||||
#define WRITE_REGISTER(_addr, _data) iowrite32((_data), (_addr))
|
||||
|
||||
#define CC_HAL_WRITE_REGISTER(offset, val) WRITE_REGISTER(cc_base + offset, val)
|
||||
#define CC_HAL_READ_REGISTER(offset) READ_REGISTER(cc_base + offset)
|
||||
#define CC_HAL_WRITE_REGISTER(offset, val) \
|
||||
WRITE_REGISTER(cc_base + (offset), val)
|
||||
#define CC_HAL_READ_REGISTER(offset) READ_REGISTER(cc_base + (offset))
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue