]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mfd: at91-usart: Constify at91_usart_spi_subdev and at91_usart_serial_subdev
authorAxel Lin <axel.lin@ingics.com>
Thu, 31 Jan 2019 04:32:12 +0000 (12:32 +0800)
committerLee Jones <lee.jones@linaro.org>
Thu, 7 Feb 2019 10:44:05 +0000 (10:44 +0000)
They are never get changed, make them constant.
While at it, fix indent as well.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/at91-usart.c

index d20747f612c192da606a7e167c4129d4f92c3a64..684d3a8db6617402771d14426b8ff1edb1254b6d 100644 (file)
 #include <linux/of.h>
 #include <linux/property.h>
 
-static struct mfd_cell at91_usart_spi_subdev = {
-               .name = "at91_usart_spi",
-               .of_compatible = "microchip,at91sam9g45-usart-spi",
-       };
+static const struct mfd_cell at91_usart_spi_subdev = {
+       .name = "at91_usart_spi",
+       .of_compatible = "microchip,at91sam9g45-usart-spi",
+};
 
-static struct mfd_cell at91_usart_serial_subdev = {
-               .name = "atmel_usart_serial",
-               .of_compatible = "atmel,at91rm9200-usart-serial",
-       };
+static const struct mfd_cell at91_usart_serial_subdev = {
+       .name = "atmel_usart_serial",
+       .of_compatible = "atmel,at91rm9200-usart-serial",
+};
 
 static int at91_usart_mode_probe(struct platform_device *pdev)
 {