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>
};
typedef struct _peripheral_i2c_s *peripheral_i2c_context_h;
};
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);
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);
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);
-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 */
int peripheral_i2c_set_address(peripheral_i2c_context_h dev, int address)
{
/* Set the i2c slave address */