wacom_sys.c (6005a13c90a31501f3c21797b567e845c7098f25) | wacom_sys.c (f2209d4aefac246772152c5294af49f2800f646b) |
---|---|
1/* 2 * drivers/input/tablet/wacom_sys.c 3 * 4 * USB Wacom tablet support - system specific code 5 */ 6 7/* 8 * This program is free software; you can redistribute it and/or modify --- 1926 unchanged lines hidden (view full) --- 1935 /* strip out excess whitespaces */ 1936 while (1) { 1937 char *gap = strstr(name, " "); 1938 if (gap == NULL) 1939 break; 1940 /* shift everything including the terminator */ 1941 memmove(gap, gap+1, strlen(gap)); 1942 } | 1/* 2 * drivers/input/tablet/wacom_sys.c 3 * 4 * USB Wacom tablet support - system specific code 5 */ 6 7/* 8 * This program is free software; you can redistribute it and/or modify --- 1926 unchanged lines hidden (view full) --- 1935 /* strip out excess whitespaces */ 1936 while (1) { 1937 char *gap = strstr(name, " "); 1938 if (gap == NULL) 1939 break; 1940 /* shift everything including the terminator */ 1941 memmove(gap, gap+1, strlen(gap)); 1942 } |
1943 1944 /* strip off excessive prefixing */ 1945 if (strstr(name, "Wacom Co.,Ltd. Wacom ") == name) { 1946 int n = strlen(name); 1947 int x = strlen("Wacom Co.,Ltd. "); 1948 memmove(name, name+x, n-x+1); 1949 } 1950 if (strstr(name, "Wacom Co., Ltd. Wacom ") == name) { 1951 int n = strlen(name); 1952 int x = strlen("Wacom Co., Ltd. "); 1953 memmove(name, name+x, n-x+1); 1954 } 1955 |
|
1943 /* get rid of trailing whitespace */ 1944 if (name[strlen(name)-1] == ' ') 1945 name[strlen(name)-1] = '\0'; 1946 } else { 1947 /* no meaningful name retrieved. use product ID */ 1948 snprintf(name, sizeof(name), 1949 "%s %X", features->name, wacom->hdev->product); 1950 } --- 553 unchanged lines hidden --- | 1956 /* get rid of trailing whitespace */ 1957 if (name[strlen(name)-1] == ' ') 1958 name[strlen(name)-1] = '\0'; 1959 } else { 1960 /* no meaningful name retrieved. use product ID */ 1961 snprintf(name, sizeof(name), 1962 "%s %X", features->name, wacom->hdev->product); 1963 } --- 553 unchanged lines hidden --- |