Re: [PATCH v4 5/5] i2c: designware: Cleaning comments and formatation

From: Andy Shevchenko
Date: Wed Dec 07 2016 - 14:54:13 EST


On Wed, 2016-12-07 at 17:55 +0000, Luis Oliveira wrote:
> - Missspelling, comment formatation and fix a string of
> Â the existing code
>

Good, but after addressing below comments:
Acked-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

> --- a/drivers/i2c/busses/i2c-designware-slave.c
> +++ b/drivers/i2c/busses/i2c-designware-slave.c
> @@ -70,8 +70,8 @@ int i2c_dw_init_slave(struct dw_i2c_dev *dev)
> Â /* Configure register access mode 16bit */
> Â dev->accessor_flags |= ACCESS_16BIT;
> Â } else if (reg != DW_IC_COMP_TYPE_VALUE) {
> - dev_err(dev->dev, "Unknown Synopsys component type: "
> - "0x%08x\n", reg);
> + dev_err(dev->dev,
> + Â"Unknown Synopsys component type: 0x%08x\n", reg);

Keep indentation like

some_call(param, param2, ...
paramX, paramY, ...);

It applies to all your new code you bring by this series.


> @@ -181,8 +181,10 @@ int i2c_dw_reg_slave(struct i2c_client *slave)
> Â return -EBUSY;
> Â if (slave->flags & I2C_CLIENT_TEN)
> Â return -EAFNOSUPPORT;
> - /* set slave address in the IC_SAR register,
> - * the address to which the DW_apb_i2c responds */
> + /*
> + Â* set slave address in the IC_SAR register,
> + Â* the address to which the DW_apb_i2c responds

Again, Capital letter here, dot at the end of sentence. You may fix (if
you want to) the rest of comment lines in entire driver.

> + Â*/
> Â
> Â __i2c_dw_enable(dev, false);
> Â dw_writel(dev, slave->addr, DW_IC_SAR);

--
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Intel Finland Oy