From 836d953cb71e69c4fc8cae9bfad6474ed81de014 Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Wed, 10 Dec 2014 00:33:16 +0000 Subject: [PATCH] i2c: remove hz from context Signed-off-by: Brendan Le Foll --- include/mraa_internal_types.h | 1 - src/i2c/i2c.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/include/mraa_internal_types.h b/include/mraa_internal_types.h index a7d75bb..8c5e747 100644 --- a/include/mraa_internal_types.h +++ b/include/mraa_internal_types.h @@ -56,7 +56,6 @@ struct _gpio { */ struct _i2c { /*@{*/ - int hz; /**< frequency of communication */ int fh; /**< the file handle to the /dev/i2c-* device */ int addr; /**< the address of the i2c slave */ /*@}*/ diff --git a/src/i2c/i2c.c b/src/i2c/i2c.c index 3207db2..1dc5f67 100644 --- a/src/i2c/i2c.c +++ b/src/i2c/i2c.c @@ -137,8 +137,6 @@ mraa_i2c_init_raw(unsigned int bus) mraa_result_t mraa_i2c_frequency(mraa_i2c_context dev, mraa_i2c_mode_t mode) { - dev->hz = hz; - return MRAA_ERROR_FEATURE_NOT_SUPPORTED; }