Re: [PATCH 05/10] serial: stm32: Use of_device_get_match_data()

2019-10-04 Thread Greg Kroah-Hartman
On Fri, Oct 04, 2019 at 02:43:29PM -0700, Stephen Boyd wrote: > This driver casts away the constness of struct stm32_usart_info that is > pointed to by the of match table. Use of_device_get_match_data() instead > of of_match_device() here and push the const throughout the code so that > we don't ca

[PATCH 05/10] serial: stm32: Use of_device_get_match_data()

2019-10-04 Thread Stephen Boyd
This driver casts away the constness of struct stm32_usart_info that is pointed to by the of match table. Use of_device_get_match_data() instead of of_match_device() here and push the const throughout the code so that we don't cast away const. This nicely avoids referencing the match table when it