Remove i2c_set_frequency API 08/125808/1
authorHyeongsik Min <hyeongsik.min@samsung.com>
Tue, 18 Apr 2017 06:55:45 +0000 (15:55 +0900)
committerHyeongsik Min <hyeongsik.min@samsung.com>
Tue, 18 Apr 2017 08:10:54 +0000 (17:10 +0900)
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 <hyeongsik.min@samsung.com>
include/peripheral_io.h
src/peripheral_i2c.c

index d6dcd30..e998f45 100644 (file)
@@ -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);
index 865cf92..0ea2644 100644 (file)
@@ -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 */