i2c: imx: remove extra spaces.
Signed-off-by: Dmitriy Baranov <dbaranov@dev.rtsoft.ru> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
69e558fa35
commit
3bf58bb5da
|
@ -212,7 +212,7 @@ struct imx_i2c_struct {
|
||||||
struct imx_i2c_dma *dma;
|
struct imx_i2c_dma *dma;
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct imx_i2c_hwdata imx1_i2c_hwdata = {
|
static const struct imx_i2c_hwdata imx1_i2c_hwdata = {
|
||||||
.devtype = IMX1_I2C,
|
.devtype = IMX1_I2C,
|
||||||
.regshift = IMX_I2C_REGSHIFT,
|
.regshift = IMX_I2C_REGSHIFT,
|
||||||
.clk_div = imx_i2c_clk_div,
|
.clk_div = imx_i2c_clk_div,
|
||||||
|
@ -222,7 +222,7 @@ static const struct imx_i2c_hwdata imx1_i2c_hwdata = {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct imx_i2c_hwdata imx21_i2c_hwdata = {
|
static const struct imx_i2c_hwdata imx21_i2c_hwdata = {
|
||||||
.devtype = IMX21_I2C,
|
.devtype = IMX21_I2C,
|
||||||
.regshift = IMX_I2C_REGSHIFT,
|
.regshift = IMX_I2C_REGSHIFT,
|
||||||
.clk_div = imx_i2c_clk_div,
|
.clk_div = imx_i2c_clk_div,
|
||||||
|
@ -871,7 +871,7 @@ static int i2c_imx_read(struct imx_i2c_struct *i2c_imx, struct i2c_msg *msgs, bo
|
||||||
if ((!i) && block_data)
|
if ((!i) && block_data)
|
||||||
msgs->buf[0] = len;
|
msgs->buf[0] = len;
|
||||||
else
|
else
|
||||||
msgs->buf[i] = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2DR);
|
msgs->buf[i] = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2DR);
|
||||||
dev_dbg(&i2c_imx->adapter.dev,
|
dev_dbg(&i2c_imx->adapter.dev,
|
||||||
"<%s> read byte: B%d=0x%X\n",
|
"<%s> read byte: B%d=0x%X\n",
|
||||||
__func__, i, msgs->buf[i]);
|
__func__, i, msgs->buf[i]);
|
||||||
|
@ -916,7 +916,7 @@ static int i2c_imx_xfer(struct i2c_adapter *adapter,
|
||||||
temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR);
|
temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR);
|
||||||
temp |= I2CR_RSTA;
|
temp |= I2CR_RSTA;
|
||||||
imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR);
|
imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR);
|
||||||
result = i2c_imx_bus_busy(i2c_imx, 1);
|
result = i2c_imx_bus_busy(i2c_imx, 1);
|
||||||
if (result)
|
if (result)
|
||||||
goto fail0;
|
goto fail0;
|
||||||
}
|
}
|
||||||
|
@ -1192,7 +1192,7 @@ static int i2c_imx_remove(struct platform_device *pdev)
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
static int i2c_imx_runtime_suspend(struct device *dev)
|
static int i2c_imx_runtime_suspend(struct device *dev)
|
||||||
{
|
{
|
||||||
struct imx_i2c_struct *i2c_imx = dev_get_drvdata(dev);
|
struct imx_i2c_struct *i2c_imx = dev_get_drvdata(dev);
|
||||||
|
|
||||||
clk_disable_unprepare(i2c_imx->clk);
|
clk_disable_unprepare(i2c_imx->clk);
|
||||||
|
|
||||||
|
@ -1201,7 +1201,7 @@ static int i2c_imx_runtime_suspend(struct device *dev)
|
||||||
|
|
||||||
static int i2c_imx_runtime_resume(struct device *dev)
|
static int i2c_imx_runtime_resume(struct device *dev)
|
||||||
{
|
{
|
||||||
struct imx_i2c_struct *i2c_imx = dev_get_drvdata(dev);
|
struct imx_i2c_struct *i2c_imx = dev_get_drvdata(dev);
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = clk_prepare_enable(i2c_imx->clk);
|
ret = clk_prepare_enable(i2c_imx->clk);
|
||||||
|
|
Loading…
Reference in New Issue