drivers: thermal: Use standard list traversal macro

To traverse the sibling sensors, thermal framework uses a local
traversal macro. Also the existing sensor unregister doesn't use a
safe list traversal during sensor unregister. This can lead to list
poisoning when deleting the existing sensor.

Use standard list traversal macros to traverse the sibling sensors. Use
safe version of list traversal when unregistering the sensor.

Change-Id: Ib955f2e446b25fc7c68197f81d0854823569bfc1
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
1 file changed