i2c: tegra: Fix assignment of boolean variables
PATCH 1/1 i2c: tegra: Fix assignment of boolean variables
Fix the following warnings reported by coccinelle for the Tegra I2C driver.
drivers/i2c/busses/i2c-tegra.c:513:2-23: WARNING: Assignment of bool to 0/1 drivers/i2c/busses/i2c-tegra.c:539:3-24: WARNING: Assignment of bool to 0/1
Signed-off-by Jon Hunter <[email protected]>
--- drivers/i2c/busses/i2c-tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/i2c/busses/i2c-tegra.c +2 -2
@@ -510,7 +510,7 @@ static int tegra_i2c_init(struct tegra_i2c_dev *i2c_dev) }if (i2c_dev->irq_disabled) { - i2c_dev->irq_disabled =0 ; + i2c_dev->irq_disabled = false;enable_irq (i2c_dev->irq); }
@@ -536,7 +536,7 @@ static irqreturn_t tegra_i2c_isr(int irq, void *dev_id)if (!i2c_dev->irq_disabled) {disable_irq_nosync (i2c_dev->irq); - i2c_dev->irq_disabled =1 ; + i2c_dev->irq_disabled = true; } goto err; }
Signature · 1 line
2.1.4
A message that is not in the archive (sent off-list or not yet received): 1473155445-3046-1-git-send-email-jonathanh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org
Wolfram Sang
AppliedQuoted 8 lines · Jon Hunter
Fix the following warnings reported by coccinelle for the Tegra I2C driver.
drivers/i2c/busses/i2c-tegra.c:513:2-23: WARNING: Assignment of bool to 0/1 drivers/i2c/busses/i2c-tegra.c:539:3-24: WARNING: Assignment of bool to 0/1
Signed-off-by Jon Hunter <[email protected]>
Applied to for-next, thanks!