From: Hyeongsik Min Date: Tue, 18 Apr 2017 06:55:45 +0000 (+0900) Subject: Remove i2c_set_frequency API X-Git-Tag: submit/tizen/20170426.072552~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba00ecdc24c7672e355168216ffa06c478ced9b8;p=platform%2Fcore%2Fapi%2Fperipheral-io.git Remove i2c_set_frequency API Remove the API and related enum type because ioctl for i2c frequency setting is not defiend in kernel. Change-Id: Ib151fdcfbcb5978ef4d88350e05ac9f09252b959 Signed-off-by: Hyeongsik Min --- diff --git a/include/peripheral_io.h b/include/peripheral_io.h index d6dcd30..e998f45 100644 --- a/include/peripheral_io.h +++ b/include/peripheral_io.h @@ -283,18 +283,10 @@ struct _peripheral_i2c_s { }; typedef struct _peripheral_i2c_s *peripheral_i2c_context_h; -typedef enum { - PERIPHERAL_I2C_STD = 0, - PERIPHERAL_I2C_FAST = 1, - PERIPHERAL_I2C_HIGH = 2 -} peripheral_i2c_mode_e; - peripheral_i2c_context_h peripheral_i2c_init(int bus); int peripheral_i2c_stop(peripheral_i2c_context_h hnd); -int peripheral_i2c_set_frequency(peripheral_i2c_context_h hnd, peripheral_i2c_mode_e mode); - int peripheral_i2c_set_address(peripheral_i2c_context_h hnd, int address); int peripheral_i2c_read(peripheral_i2c_context_h hnd, uint8_t *data, int length); diff --git a/src/peripheral_i2c.c b/src/peripheral_i2c.c index 865cf92..0ea2644 100644 --- a/src/peripheral_i2c.c +++ b/src/peripheral_i2c.c @@ -74,12 +74,6 @@ int peripheral_i2c_stop(peripheral_i2c_context_h dev) return ret; } -int peripheral_i2c_set_frequency(peripheral_i2c_context_h dev, peripheral_i2c_mode_e mode) -{ - /* Set the clocking for the selected frequency */ - return peripheral_dbus_i2c(dev, I2C_NAME, "SET_FREQ", mode, 0, I2C_Addr); -} - int peripheral_i2c_set_address(peripheral_i2c_context_h dev, int address) { /* Set the i2c slave address */