drivertool: formatting code using astyle

Origin commit data
------------------
Commit: d5c03f5f85
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-07-05 (Mon, 05 Jul 2021)

Origin message was:
------------------
- drivertool: formatting code using astyle
This commit is contained in:
vanhofen
2021-07-05 22:39:39 +02:00
parent 30987f5bfa
commit 3c830bfccb

View File

@@ -110,7 +110,8 @@ struct ioctl_list
ioc_type type;
};
static struct ioctl_list n[] = {
static struct ioctl_list n[] =
{
{ 0, "FP_SET_BRIGHT", IOC_FP_SET_BRIGHT, TYPE_CHAR },
{ 0, "FP_CLEAR_ALL", IOC_FP_CLEAR_ALL, TYPE_UINT },
{ 0, "FP_SET_TEXT", IOC_FP_SET_TEXT, TYPE_CHARP },
@@ -236,8 +237,7 @@ int main(int argc, char **argv)
ret = 0;
/* allow the old VFD_ names for backwards compatibility */
while (n[i].text != NULL && strcmp(n[i].text, argv[1]) != 0 &&
!(strncmp(argv[1], "VFD_", 4) == 0 && strcmp(n[i].text + 2, argv[1] + 3) == 0))
while (n[i].text != NULL && strcmp(n[i].text, argv[1]) != 0 && !(strncmp(argv[1], "VFD_", 4) == 0 && strcmp(n[i].text + 2, argv[1] + 3) == 0))
i++;
if (!n[i].text || (n[i].type != TYPE_UINT_GET && argc < 3))