]> www.infradead.org Git - nvme.git/commit
vfio/ccw: simplify the cp_get_orb interface
authorEric Farman <farman@linux.ibm.com>
Thu, 10 Nov 2022 02:30:23 +0000 (03:30 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 9 Jan 2023 13:34:07 +0000 (14:34 +0100)
commit9fbed59fcd16e60dde2528038cc343abd65c0948
tree2f1ec51785ba18215e1dce1f66d541b67d15f2e4
parent8a54e238ef1eb6edd50335ee8626f6962c3dfb4f
vfio/ccw: simplify the cp_get_orb interface

There's no need to send in both the address of the subchannel
struct, and an element within it, to populate the ORB.

Pass the whole pointer and let cp_get_orb() take the pieces
that are needed.

Suggested-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/cio/vfio_ccw_cp.c
drivers/s390/cio/vfio_ccw_cp.h
drivers/s390/cio/vfio_ccw_fsm.c