提交 c7ae44e8 编写于 作者: J Jon Hunter 提交者: Wolfram Sang

i2c: tegra: Fix lines over 80 characters

Checkpatch warns about some lines over 80 characters in the Tegra I2C
driver and so fix these.

While we are at it, prefix the second instance of "STOP condition" in
the comment with a "the".
Signed-off-by: NJon Hunter <jonathanh@nvidia.com>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 6d54f144
...@@ -193,7 +193,8 @@ struct tegra_i2c_dev { ...@@ -193,7 +193,8 @@ struct tegra_i2c_dev {
bool is_multimaster_mode; bool is_multimaster_mode;
}; };
static void dvc_writel(struct tegra_i2c_dev *i2c_dev, u32 val, unsigned long reg) static void dvc_writel(struct tegra_i2c_dev *i2c_dev, u32 val,
unsigned long reg)
{ {
writel(val, i2c_dev->base + reg); writel(val, i2c_dev->base + reg);
} }
...@@ -643,9 +644,10 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev, ...@@ -643,9 +644,10 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev,
return 0; return 0;
/* /*
* NACK interrupt is generated before the I2C controller generates the * NACK interrupt is generated before the I2C controller generates
* STOP condition on the bus. So wait for 2 clock periods before resetting * the STOP condition on the bus. So wait for 2 clock periods
* the controller so that STOP condition has been delivered properly. * before resetting the controller so that the STOP condition has
* been delivered properly.
*/ */
if (i2c_dev->msg_err == I2C_ERR_NO_ACK) if (i2c_dev->msg_err == I2C_ERR_NO_ACK)
udelay(DIV_ROUND_UP(2 * 1000000, i2c_dev->bus_clk_rate)); udelay(DIV_ROUND_UP(2 * 1000000, i2c_dev->bus_clk_rate));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册