code: func (s *spiConfig) GetModeOrDefault(d int) int {
  	if s.mode == NotInitialized {
  		return d
  	}
  	return s.mode
  }
docs: // GetModeOrDefault returns which mode to use, either the one set using WithChip(),
  // or the default value which is passed in as the one param.