skd: Simplify the code for handling data direction
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 17 Aug 2017 20:13:12 +0000 (13:13 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 Aug 2017 14:45:29 +0000 (08:45 -0600)
commitb1824eef28dcb384d5f771b79ec9a65474e20218
tree32181672a9dc9bbee856b91b8ca6290afc61cb25
parent0b2e0c0772fa39fbd8dc4b959a5f3ede48ec643c
skd: Simplify the code for handling data direction

Use DMA_FROM_DEVICE and DMA_TO_DEVICE directly instead of
introducing driver-private constants with the same numerical
value.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/skd_main.c