aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorFinn Thain <[email protected]>2018-04-11 20:50:14 -0400
committerJens Axboe <[email protected]>2018-04-16 21:49:35 -0600
commit56a1c5ee54f69dd767fb61d301883dc919ddc259 (patch)
tree43a16181138097f465de8aee19a8cd31a5e92b54 /lib/test_overflow.c
parent8e2ab5a4efaac77fb93e5b5b109d0b3976fdd3a0 (diff)
block/swim: Rename macros to avoid inconsistent inverted logic
The Sony drive status bits use active-low logic. The swim_readbit() function converts that to 'C' logic for readability. Hence, the sense of the names of the status bit macros should not be inverted. Mostly they are correct. However, the TWOMEG_DRIVE, MFM_MODE and TWOMEG_MEDIA macros have inverted sense (like MkLinux). Fix this inconsistency and make the following patches less confusing. The same problem affects swim3.c so fix that too. No functional change. The FDHD drive status bits are documented in sonydriv.cpp from MAME and in swimiii.h from MkLinux. Cc: Laurent Vivier <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: [email protected] Cc: Jens Axboe <[email protected]> Cc: [email protected] # v4.14+ Tested-by: Stan Johnson <[email protected]> Signed-off-by: Finn Thain <[email protected]> Acked-by: Laurent Vivier <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions