thunderbolt: Make tb_sw_write() take const parameter