]> oss.titaniummirror.com Git - cp210x.git/blobdiff - src/cp210x.c
Remove set functionality for Manufacturer descriptor.
[cp210x.git] / src / cp210x.c
index 4b1a29d606e7dae38e26d2bd6ccf41c99477e146..c670ea5cf2ff0721275505c4b599f85826b208df 100644 (file)
@@ -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)];