Unify the interfaces of spi and stc/spi module