Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: at91-usart: Constify at91_usart_spi_subdev and at91_usart_serial_subdev

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>

authored by

Axel Lin and committed by
Lee Jones
10cffde4 422dcafe

+8 -8
+8 -8
drivers/mfd/at91-usart.c
··· 15 15 #include <linux/of.h> 16 16 #include <linux/property.h> 17 17 18 - static struct mfd_cell at91_usart_spi_subdev = { 19 - .name = "at91_usart_spi", 20 - .of_compatible = "microchip,at91sam9g45-usart-spi", 21 - }; 18 + static const struct mfd_cell at91_usart_spi_subdev = { 19 + .name = "at91_usart_spi", 20 + .of_compatible = "microchip,at91sam9g45-usart-spi", 21 + }; 22 22 23 - static struct mfd_cell at91_usart_serial_subdev = { 24 - .name = "atmel_usart_serial", 25 - .of_compatible = "atmel,at91rm9200-usart-serial", 26 - }; 23 + static const struct mfd_cell at91_usart_serial_subdev = { 24 + .name = "atmel_usart_serial", 25 + .of_compatible = "atmel,at91rm9200-usart-serial", 26 + }; 27 27 28 28 static int at91_usart_mode_probe(struct platform_device *pdev) 29 29 {