i2c: exynos5: Describe the hardware variant for readability
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 18 Jul 2018 19:54:04 +0000 (21:54 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 20 Jul 2018 22:15:22 +0000 (00:15 +0200)
commiteebfd44399e93c171aefef057cd79dfd9276cc22
tree5652c2ac346a82072c15408d4a8b7107e936c72d
parentc4ae05b976b2a67fb24f35d21731b4da2c235bbf
i2c: exynos5: Describe the hardware variant for readability

The driver supports multiple hardware variants of Exynos I2C controller
which differ in FIFO depth, handling of interrupts and bus recovery in
HSI2C_MASTER_ST_LOSE state.

The difference in variant was a single bit set for Exynos7 variants and
implicit lack of this bit for other variants.

Make each variant explicit which also fixes the GCC warning about
documentation:

    drivers/i2c/busses/i2c-exynos5.c:223: warning: Function parameter or member 'hw' not described in 'exynos_hsi2c_variant'

No change in functionality.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-exynos5.c