i2c: mediatek: use of_device_get_match_data()
authorRyder Lee <ryder.lee@mediatek.com>
Mon, 16 Apr 2018 02:32:52 +0000 (10:32 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 30 Apr 2018 08:39:28 +0000 (10:39 +0200)
commit6e29577fc2a870c4272d10d54d2fdec019301dc0
treed64adc14b12c21459dbdb59828dd52a5d215a8de
parent952cfd15815e0308135001dc7a612b8fa7feb2d2
i2c: 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_i2c_probe() is to match an entry in
mtk_i2c_of_match[], so of_id cannot be NULL.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mt65xx.c