From: unknown Date: Fri, 23 Apr 2010 16:47:43 +0000 (+0200) Subject: Rename sigrokdecode_register_i2c() to register(). X-Git-Tag: libsigrokdecode-0.1.0~333 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=23a13b21b38211c73cbe0418a88060f0586cc065;p=libsigrokdecode.git Rename sigrokdecode_register_i2c() to register(). --- diff --git a/scripts/i2c.py b/scripts/i2c.py index 6f9a160..0854895 100644 --- a/scripts/i2c.py +++ b/scripts/i2c.py @@ -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: