Re: [PATCH v3] i2c: rcar: tidyup priv->devtype handling on rcar_i2c_probe()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Kuninori,

On Mon, Sep 09, 2024 at 04:42:45AM GMT, Kuninori Morimoto wrote:
> rcar_i2c_probe() has priv->devtype operation, but handling (A) and (C)
> in same place is more understandable ( (A) and (B) are independent).
> 
> (A)	if (priv->devtype < I2C_RCAR_GEN3) {
> 		...
> 	}
> 
> (B)	...
> 
> (C)	if (priv->devtype >= I2C_RCAR_GEN3) {
> 		...
> 	}
> 
> Let's merge it with if-else
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>
> Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
> Reviewed-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>

Merged to i2c/i2c-host.

Thanks,
Andi




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux