i2c: remove hz from context
authorBrendan Le Foll <brendan.le.foll@intel.com>
Wed, 10 Dec 2014 00:33:16 +0000 (00:33 +0000)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Mon, 5 Jan 2015 14:38:48 +0000 (14:38 +0000)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
include/mraa_internal_types.h
src/i2c/i2c.c

index a7d75bb..8c5e747 100644 (file)
@@ -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 */
     /*@}*/
index 3207db2..1dc5f67 100644 (file)
@@ -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;
 }