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

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

 



On Thu, May 01, 2014 at 03:26:15PM +0200, Geert Uytterhoeven wrote:
> 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"?

"This patch still needs some improvements, but already shows what I am
aiming for." :)

Attachment: signature.asc
Description: Digital signature


[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