Tags: westerndigitalcorporation/pt-tools
Tags
ptio: Improve ptio_open_dev() Instead of always passing O_RDWR to ptio_open_dev(), pass the transfer direction as the second argument and automatically decide on the open mode based on that direction, that is, open the device read-write if data is to be transfered to the device and read-only otherwise. Signed-off-by: Damien Le Moal <dlemoal@kernel.org>