diff --git a/controller/interfaces/device/device.go b/controller/interfaces/device/device.go index 7b4d130008a220b32bd96a41c8cbf91f9c82cdba..8de21b4c63daafc50debb83b05135c758fda1855 100644 --- a/controller/interfaces/device/device.go +++ b/controller/interfaces/device/device.go @@ -55,9 +55,9 @@ type LoadedDevice struct { convertFunc func(LoadedDevice) (Device, error) } -// SetConverFunction allows to set the LoadedDevice's convert function. This +// SetConvertFunction allows to set the LoadedDevice's convert function. This // function should take a LoadedDevice and returns a Device. -func (ld LoadedDevice) SetConvertFunction(cf func(LoadedDevice) (Device, error)) { +func (ld *LoadedDevice) SetConvertFunction(cf func(LoadedDevice) (Device, error)) { ld.convertFunc = cf }