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

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

 




On Sunday 21 February 2016 07:27 PM, Wolfram Sang wrote:
From: Wolfram Sang <wolfram@xxxxxxxxxxxxx>

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@xxxxxxxxxxxxx>
---

Compile tested only; HW test would be much appreciated!



Tested on Jetson-TX1.

Acked-by: Laxman Dewangan <ldewangan@xxxxxxxxxx>
Tested-by: Laxman Dewangan <ldewangan@xxxxxxxxxx>


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

--
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