X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=src%2Fcp210x.c;fp=src%2Fcp210x.c;h=c670ea5cf2ff0721275505c4b599f85826b208df;hb=62f7ab54a8973d9de7a76e79fed81347908505c4;hp=4b1a29d606e7dae38e26d2bd6ccf41c99477e146;hpb=185ac8c0b94807a01f510f17f45d402f47add83a;p=cp210x.git diff --git a/src/cp210x.c b/src/cp210x.c index 4b1a29d..c670ea5 100644 --- a/src/cp210x.c +++ b/src/cp210x.c @@ -274,17 +274,6 @@ static size_t cp210x_usbstr_from_user(char *kbuf, unsigned long ubuf, return make_usb_string(kbuf, klen, str, slen); } -/* cp210x_has_setmfg - * Returns 1 if the CP210X part includes firmware that allows setting the - * USB MFG descriptor, else 0. As of this writing, no CP210X firmware allows - * this. SiLabs has suggested this may change in future firmware versions or - * parts. - */ -static inline int cp210x_has_setmfg(void) -{ - return 0; -} - /* * cp210x_ctlmsg * A generic usb control message interface. @@ -770,17 +759,6 @@ static int cp210x_ioctl(struct usb_serial_port *port, struct file *file, } break; - case CP210x_IOCTL_SETMFG: - if (cp210x_has_setmfg()) { - char usbstr[USBSTRLEN(CP210x_MAX_MFG_STRLEN)]; - size_t len = cp210x_usbstr_from_user(usbstr, arg, - sizeof(usbstr)); - if (len && cp210x_setstr(port, 0x00, usbstr) == len) - return 0; - } - return -EFAULT; - break; - case CP210x_IOCTL_SETPRODUCT: { char usbstr[USBSTRLEN(CP210x_MAX_PRODUCT_STRLEN)];