[PATCH v2 2/9] i2c: add generic routine to parse DT for timing information

Wolfram Sang wsa at the-dreams.de
Tue Dec 8 05:03:23 PST 2015


> Too many && use_defaults. What about
> 
> memset(t, 0, sizeof(*t));
> 
> device_property_read_u32(dev, "i2c-scl-internal-delay-ns", &t-
> >scl_int_delay_ns);
> 
> if (!use_defaults)
>  return;

I like this! Thanks for the input.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-rockchip/attachments/20151208/bd29275f/attachment.sig>


More information about the Linux-rockchip mailing list