Ports: Rename the 'fromXYZPort' to 'fromPort' since it's redundant
[sifive-blocks.git] / src / main / scala / devices / spi / SPIPins.scala
index 4307fadbd71a455cd43500eb2ff81dbed429cd68..780e8cc35f5dc6fffa4321ede941769837cc6965 100644 (file)
@@ -14,7 +14,7 @@ class SPIPins[T <: Pin] (pingen: ()=> T, c: SPIParamsBase) extends SPIBundle(c)
   override def cloneType: this.type =
     this.getClass.getConstructors.head.newInstance(pingen, c).asInstanceOf[this.type]
 
-  def fromSPIPort(spi: SPIPortIO, clock: Clock, reset: Bool,
+  def fromPort(spi: SPIPortIO, clock: Clock, reset: Bool,
     syncStages: Int = 0, driveStrength: Bool = Bool(false)) {
 
     withClockAndReset(clock, reset) {