Re: [PATCH v7 5/9] i2c: rk3x: Change SoC data to not use array
From: Doug Anderson <hidden>
Date: 2016-05-05 22:57:42
Also in:
linux-arm-kernel, linux-i2c, linux-rockchip, lkml
From: Doug Anderson <hidden>
Date: 2016-05-05 22:57:42
Also in:
linux-arm-kernel, linux-i2c, linux-rockchip, lkml
Hi, On Wed, May 4, 2016 at 7:33 AM, David Wu [off-list ref] wrote:
Signed-off-by: David Wu <redacted>
nit: $SUBJECT should probably mention that this also constifies the SoC data. Again, needs description, like maybe: Specifying the i2c SoC data in an array provides very little benefit and gets unwieldly / confusing as the array grows since the next bit of code needs to refer to elements in the array by their raw integral index. Let's just create a single 'static const' structure for each SoC so that we can refer to these structures by ID. IMHO this can be applied any time independent of any earlier patches. Suggested-by: Douglas Anderson <redacted> Reviewed-by: Douglas Anderson <redacted> -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html