]> sigrok.org Git - libsigrokdecode.git/commitdiff
Rename sigrokdecode_register_i2c() to register().
authorunknown <redacted>
Fri, 23 Apr 2010 16:47:43 +0000 (18:47 +0200)
committerUwe Hermann <redacted>
Fri, 23 Apr 2010 17:38:50 +0000 (19:38 +0200)
scripts/i2c.py

index 6f9a160fa0cdee3054d5f7dc3cec778799b36268..0854895f0cf25b4446e0c40f007213c16e4400d2 100644 (file)
@@ -149,8 +149,8 @@ def sigrokdecode_i2c(inbuf):
        return o
 
 # This is just a draft.
-def sigrokdecode_register_i2c():
-       metadata = {
+def register():
+       return {
                'id': 'i2c',
                'name': 'I2C',
                'description': 'Inter-Integrated Circuit (I2C) bus',
@@ -162,7 +162,6 @@ def sigrokdecode_register_i2c():
                                },
                'ouputformats': ['i2c', 'ascii'],
        }
-       return metadata
 
 # Use psyco (if available) as it results in huge performance improvements.
 try: