@@ -65,10 +65,6 @@ enum {
STATE_WRITE,
};
-struct meson_i2c_data {
- unsigned char div_factor;
-};
-
/**
* struct meson_i2c - Meson I2C device private data
*
@@ -514,22 +510,10 @@ static int meson_i2c_remove(struct platform_device *pdev)
return 0;
}
-static const struct meson_i2c_data i2c_meson6_data = {
- .div_factor = 4,
-};
-
-static const struct meson_i2c_data i2c_gxbb_data = {
- .div_factor = 4,
-};
-
-static const struct meson_i2c_data i2c_axg_data = {
- .div_factor = 3,
-};
-
static const struct of_device_id meson_i2c_match[] = {
- { .compatible = "amlogic,meson6-i2c", .data = &i2c_meson6_data },
- { .compatible = "amlogic,meson-gxbb-i2c", .data = &i2c_gxbb_data },
- { .compatible = "amlogic,meson-axg-i2c", .data = &i2c_axg_data },
+ { .compatible = "amlogic,meson6-i2c", },
+ { .compatible = "amlogic,meson-gxbb-i2c", },
+ { .compatible = "amlogic,meson-axg-i2c", },
{},
};
The div_factor is not used anymore and can be removed. With 50% duty cycle the div factor should 4 for all devices. Signed-off-by: Lucas Tanure <tanure@linux.com> --- drivers/i2c/busses/i2c-meson.c | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-)