]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/edid/pd.py
Use the new Decoder.register() API
[libsigrokdecode.git] / decoders / edid / pd.py
index a03fe67c9644cbfbdf5b668eb7b4b4d403e89216..704f3505a164f167273a1333c2423c895ba84e9d 100644 (file)
@@ -1,5 +1,5 @@
 ##
-## This file is part of the sigrok project.
+## This file is part of the libsigrokdecode project.
 ##
 ## Copyright (C) 2012 Bert Vermeulen <bert@biot.com>
 ##
@@ -81,8 +81,10 @@ class Decoder(srd.Decoder):
     longname = 'Extended Display Identification Data'
     desc = 'Data structure describing display device capabilities.'
     license = 'gplv3+'
-    inputs = ['ddc2']
+    inputs = ['i2c']
     outputs = ['edid']
+    probes = []
+    optional_probes = []
     options = {}
     annotations = [
         ['EDID fields', 'EDID structure fields'],
@@ -98,8 +100,8 @@ class Decoder(srd.Decoder):
         # Received data
         self.cache = []
 
-    def start(self, metadata):
-        self.out_ann = self.add(srd.OUTPUT_ANN, 'edid')
+    def start(self):
+        self.out_ann = self.register(srd.OUTPUT_ANN)
 
     def report(self):
         pass