The read/writedatabyte() functions are just a special case of read/writedata() with a simpler API, so reuse these instead of duplicating code. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>