]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit75d0bff6a74a4fd70b488d884c364ae8f2033246
tree32181672a9dc9bbee856b91b8ca6290afc61cb25
parenteaa4e0ec5386af1b06a6cb2995c56682d76223a4
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