Re: [PATCH] soc: mediatek: use of_device_get_match_data()

2018-04-17 Thread Matthias Brugger
On 04/16/2018 04:33 AM, Ryder Lee wrote: > The usage of of_device_get_match_data() reduce the code size a bit. > > Also, the only way to call pwrap_probe() is to match an entry in > of_pwrap_match_tbl[], so of_id cannot be NULL. > > Signed-off-by: Ryder Lee > ---

Re: [PATCH] soc: mediatek: use of_device_get_match_data()

2018-04-17 Thread Matthias Brugger
On 04/16/2018 04:33 AM, Ryder Lee wrote: > The usage of of_device_get_match_data() reduce the code size a bit. > > Also, the only way to call pwrap_probe() is to match an entry in > of_pwrap_match_tbl[], so of_id cannot be NULL. > > Signed-off-by: Ryder Lee > --- Applied to v4.17-next/soc

[PATCH] soc: mediatek: use of_device_get_match_data()

2018-04-15 Thread Ryder Lee
The usage of of_device_get_match_data() reduce the code size a bit. Also, the only way to call pwrap_probe() is to match an entry in of_pwrap_match_tbl[], so of_id cannot be NULL. Signed-off-by: Ryder Lee --- drivers/soc/mediatek/mtk-pmic-wrap.c | 13 +++--

[PATCH] soc: mediatek: use of_device_get_match_data()

2018-04-15 Thread Ryder Lee
The usage of of_device_get_match_data() reduce the code size a bit. Also, the only way to call pwrap_probe() is to match an entry in of_pwrap_match_tbl[], so of_id cannot be NULL. Signed-off-by: Ryder Lee --- drivers/soc/mediatek/mtk-pmic-wrap.c | 13 +++--