i2c: st: use to_platform_device()
commit66e784130a48653fcc58ebd08b54ece4fbd86bbc
authorGeliang Tang <geliangtang@163.com>
Sun, 27 Dec 2015 13:15:42 +0000 (27 21:15 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 3 Jan 2016 18:54:31 +0000 (3 19:54 +0100)
tree0fdb65417df427d15d000096f305132110f384ff
parent238c44a70c0637765709c78eeaddb2a3d3674b88
i2c: st: use to_platform_device()

Use to_platform_device() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-st.c