OSDN Git Service

hw/char/exynos4210_uart: Constify static array and few arguments
authorKrzysztof Kozlowski <krzk@kernel.org>
Thu, 20 Apr 2017 16:32:28 +0000 (17:32 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Apr 2017 16:39:17 +0000 (17:39 +0100)
commit75c6d92e4c0a5128d61d21175d2eed1354e87717
tree98ae63580b6e64ed73cc890caf57e8abfd7f9397
parentf2ad5140fa521bda30b9c3c3db5b6913f6dda1ae
hw/char/exynos4210_uart: Constify static array and few arguments

The static array exynos4210_uart_regs with register values is not
modified so it can be made const.

Few other functions accept driver or uart state as an argument but they
do not change it and do not cast it so this can be made const for code
safeness.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Message-id: 20170313184750.429-3-krzk@kernel.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/char/exynos4210_uart.c