watchdog: diag288_wdt: unify command buffer handling for diag288 zvm
authorAlexander Egorenkov <egorenar@linux.ibm.com>
Fri, 3 Feb 2023 07:39:56 +0000 (08:39 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 6 Feb 2023 14:14:09 +0000 (15:14 +0100)
commit221f748ac8633083b7800d4e33a076fce22e341e
treef9bd88efed4bf7b59afee2ccb7c5782cdf8c5b2e
parentf102dd16ebc82131bbc9eecaead4400062a21858
watchdog: diag288_wdt: unify command buffer handling for diag288 zvm

Simplify and de-duplicate code by introducing a common single command
buffer allocated once at initialization. Moreover, simplify the interface
of __diag288_vm() by accepting ASCII strings as the command parameter
and converting it to the EBCDIC format within the function itself.

Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230203073958.1585738-4-egorenar@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/watchdog/diag288_wdt.c