Use the same register for both input and output

Signed-off-by: Prashant Shah <pshah.mumbai@gmail.com>