i2c: remove hz from context
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -56,7 +56,6 @@ struct _gpio {
|
|||||||
*/
|
*/
|
||||||
struct _i2c {
|
struct _i2c {
|
||||||
/*@{*/
|
/*@{*/
|
||||||
int hz; /**< frequency of communication */
|
|
||||||
int fh; /**< the file handle to the /dev/i2c-* device */
|
int fh; /**< the file handle to the /dev/i2c-* device */
|
||||||
int addr; /**< the address of the i2c slave */
|
int addr; /**< the address of the i2c slave */
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|||||||
@@ -137,8 +137,6 @@ mraa_i2c_init_raw(unsigned int bus)
|
|||||||
mraa_result_t
|
mraa_result_t
|
||||||
mraa_i2c_frequency(mraa_i2c_context dev, mraa_i2c_mode_t mode)
|
mraa_i2c_frequency(mraa_i2c_context dev, mraa_i2c_mode_t mode)
|
||||||
{
|
{
|
||||||
dev->hz = hz;
|
|
||||||
|
|
||||||
return MRAA_ERROR_FEATURE_NOT_SUPPORTED;
|
return MRAA_ERROR_FEATURE_NOT_SUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user