Re: [PATCH] i2c: tegra: don't open code of_device_get_match_data()

Laxman Dewangan
2016-02-22T09:18:00Z

On Sunday 21 February 2016 07:27 PM, Wolfram Sang wrote:
> From: Wolfram Sang <wolfram-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
>
> This change will also make Coverity happy by avoiding a theoretical NULL
> pointer dereference; yet another reason is to use the above helper function
> to tighten the code and make it more readable.
>
> Signed-off-by: Wolfram Sang <wolfram-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
> ---
>
> Compile tested only; HW test would be much appreciated!
>

Tested on Jetson-TX1.

Acked-by: Laxman Dewangan <ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Tested-by: Laxman Dewangan <ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>

There is some more cleanups needed on this driver i.e. do not support
non-DT, move the of_table to down etc. I like to post follow up post
after this is applied.

Thanks,
Laxman