]> git.dujemihanovic.xyz Git - u-boot.git/commit
memory: ti-aemif: Correct macro to ensure avoiding precedence issues
authorBastien Curutchet <bastien.curutchet@bootlin.com>
Mon, 21 Oct 2024 15:13:25 +0000 (17:13 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 30 Oct 2024 00:45:22 +0000 (18:45 -0600)
commit7a7b13838f11f6dbb3049a44b8884e9139f39b5e
treefd8076ad33fb9464e688b46803b4f3373c572903
parentbef9fdbed2e525ce9264d2ae2fbcb37db7472052
memory: ti-aemif: Correct macro to ensure avoiding precedence issues

Fix following CHECK pointed out by checkpatch:

   CHECK: Macro argument 'cs' may be better as '(cs)' to avoid precedence issues
   #62: FILE: drivers/memory/ti-aemif.c:15:
   +#define AEMIF_CONFIG(cs)               (0x10 + (cs * 4))

Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/memory/ti-aemif.c