]> asedeno.scripts.mit.edu Git - linux.git/commit
thermal: mediatek: use of_device_get_match_data()
authorRyder Lee <ryder.lee@mediatek.com>
Mon, 16 Apr 2018 02:34:16 +0000 (10:34 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Sun, 6 May 2018 23:53:47 +0000 (16:53 -0700)
commit9efc58dfa14a200efd5c005dd25ca95c686c1d8a
tree410249454a2737e50e2923f16cad31d5c7964344
parentb43e3cfe232ab01f7cf1f60179a1d005f62d6cc0
thermal: mediatek: use of_device_get_match_data()

The usage of of_device_get_match_data() reduce the code size a bit.

Also, the only way to call mtk_thermal_probe() is to match an entry in
mtk_thermal_of_match[], so of_id cannot be NULL.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/mtk_thermal.c