Hi Wolfram,
On Thu, May 1, 2014 at 1:59 PM, Wolfram Sang <[email protected]> wrote:
> +static const struct of_device_id sh_mobile_i2c_dt_ids[] = {
> + { .compatible = "renesas,rmobile-iic", .data = (void *)1 },
> + { .compatible = "renesas,iic-r8a7790", .data = (void *)2 },
> + { .compatible = "renesas,iic-r8a7791", .data = (void *)2 },
> + {},
> +};
> +MODULE_DEVICE_TABLE(of, sh_mobile_i2c_dt_ids);
> + const struct of_device_id *match;
> +
> + match = of_match_device(sh_mobile_i2c_dt_ids, &dev->dev);
> + pd->clks_per_count = match->data;
Missing cast "(int)match->data"?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html