Messages in this thread | | | Date | Wed, 23 Feb 2022 21:13:07 +0100 | Subject | Re: [PATCH v2 07/11] spi: use helper for safer setting of driver_override | From | Krzysztof Kozlowski <> |
| |
On 23/02/2022 21:04, Mark Brown wrote: > On Wed, Feb 23, 2022 at 08:14:37PM +0100, Krzysztof Kozlowski wrote: > >> Remove also "const" from the definition of spi_device.driver_override, >> because it is not correct. The SPI driver already treats it as >> dynamic, not const, memory. > > We don't modify the string do we, we just allocate a new one?
Actually you're right - the SPI and VDPA implementations operate on "const char *". The others do not, so I can convert them to "const char *". Thanks!
Best regards, Krzysztof
| |