Lines Matching refs:prod_info
43 const char *prod_info, const char *prefix) in es58x_parse_sw_version() argument
56 prod_info = strstr(prod_info, prefix); in es58x_parse_sw_version()
57 if (!prod_info) in es58x_parse_sw_version()
60 while (!isdigit(*prod_info)) { in es58x_parse_sw_version()
61 prod_info++; in es58x_parse_sw_version()
62 if (!*prod_info) in es58x_parse_sw_version()
66 if (sscanf(prod_info, "%2u.%2u.%2u", &major, &minor, &revision) != 3) in es58x_parse_sw_version()
94 const char *prod_info) in es58x_parse_hw_rev() argument
100 prod_info = strchr(prod_info, 'H'); in es58x_parse_hw_rev()
101 if (!prod_info) in es58x_parse_hw_rev()
104 prod_info = strchr(prod_info, ':'); in es58x_parse_hw_rev()
105 if (!prod_info) in es58x_parse_hw_rev()
107 prod_info++; in es58x_parse_hw_rev()
109 if (sscanf(prod_info, "%c%3u/%3u", &letter, &major, &minor) != 3) in es58x_parse_hw_rev()
144 char *prod_info; in es58x_parse_product_info() local
150 prod_info = usb_cache_string(es58x_dev->udev, ES58X_PROD_INFO_IDX); in es58x_parse_product_info()
151 if (!prod_info) { in es58x_parse_product_info()
157 if (es58x_parse_sw_version(es58x_dev, prod_info, "FW") || in es58x_parse_product_info()
158 es58x_parse_sw_version(es58x_dev, prod_info, "BL") || in es58x_parse_product_info()
159 es58x_parse_hw_rev(es58x_dev, prod_info)) in es58x_parse_product_info()
161 "could not parse product info: '%s'\n", prod_info); in es58x_parse_product_info()
163 kfree(prod_info); in es58x_parse_product_info()