Re: [RFC] i2c: sh_mobile: WIP! Fix clock calculation for newer SoCs

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

 



Hi Wolfram,

On Thu, May 1, 2014 at 1:59 PM, Wolfram Sang <wsa@xxxxxxxxxxxxx> 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 -- geert@xxxxxxxxxxxxxx

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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux