- drivertool: formatting code using astyle

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-07-05 22:39:39 +02:00
committed by Thilo Graf
parent e337f821e2
commit d82fc76413

View File

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