Re: [PATCH v2 3/3] mmc: sdhci-s3c: constify uses of driver/match data

2021-04-15 Thread Ulf Hansson
On Thu, 15 Apr 2021 at 10:44, Krzysztof Kozlowski wrote: > > The driver data (struct sdhci_s3c_drv_data) stored in of_device_id > table is allocated as const and used only in const-way. Skip > unnecessary const-away casts and convert all users to work with pointer > to const. This is both more

Re: [PATCH v2 3/3] mmc: sdhci-s3c: constify uses of driver/match data

2021-04-15 Thread Sylwester Nawrocki
On 15.04.2021 10:44, Krzysztof Kozlowski wrote: The driver data (struct sdhci_s3c_drv_data) stored in of_device_id table is allocated as const and used only in const-way. Skip unnecessary const-away casts and convert all users to work with pointer to const. This is both more logical and

[PATCH v2 3/3] mmc: sdhci-s3c: constify uses of driver/match data

2021-04-15 Thread Krzysztof Kozlowski
The driver data (struct sdhci_s3c_drv_data) stored in of_device_id table is allocated as const and used only in const-way. Skip unnecessary const-away casts and convert all users to work with pointer to const. This is both more logical and safer. Signed-off-by: Krzysztof Kozlowski ---