From patchwork Sat Apr 11 12:08:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 227977 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A345EC2BBC7 for ; Sat, 11 Apr 2020 12:29:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7164220732 for ; Sat, 11 Apr 2020 12:29:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586608165; bh=5j496D+bx/hd6QloePd89dncUPC+IWOpQMJuEPOhULw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=ca/ipq7x6gts8Tg5+aS1P4l/8S0Bys7OJrhAqxWkb793vzf6LxxIooedVdntRXbAJ vMAhvkX4aIbpn8O5n4Bdsg7ngxlVPfz26GMoP0sAs5YlDBKhobgv/sdj9qLrmDWAzI 14bf1YRW9aDkYiKmtAbpEdjkD756J00oFFvyjVCc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726819AbgDKMLC (ORCPT ); Sat, 11 Apr 2020 08:11:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:42850 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbgDKMLB (ORCPT ); Sat, 11 Apr 2020 08:11:01 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C17FB20787; Sat, 11 Apr 2020 12:11:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586607061; bh=5j496D+bx/hd6QloePd89dncUPC+IWOpQMJuEPOhULw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HOR6+QxSHk+fTFW+FeAJHeuuW9z2joissIx5E8iIHsJ8utlz+PmbB7c73o0s4bicl URPe3g+7iBbz75Z1a90wY+it3XZnHQzgeS7tmpjjq9xZc6IEjDMCm+RDB9shu/fsnE 2HM0cQhVdY+R4h78pCcC3MmA2Q5FhbxuxatlQaiA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Krzysztof Opasiak , Krzysztof Opasiak , Felipe Balbi , Nick Desaulniers , Nathan Chancellor , kbuild test robot Subject: [PATCH 4.4 13/29] usb: gadget: uac2: Drop unused device qualifier descriptor Date: Sat, 11 Apr 2020 14:08:43 +0200 Message-Id: <20200411115409.935129037@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200411115407.651296755@linuxfoundation.org> References: <20200411115407.651296755@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Krzysztof Opasiak commit d4529f9be1d72919f75f76f31773c4e98d03ce6b upstream. This descriptor is never used. Currently device qualifier descriptor is generated by compossite code so no need to keep it in function file. Signed-off-by: Krzysztof Opasiak Signed-off-by: Krzysztof Opasiak Signed-off-by: Felipe Balbi Cc: Nick Desaulniers Cc: Nathan Chancellor Cc: kbuild test robot Signed-off-by: Greg Kroah-Hartman --- drivers/usb/gadget/function/f_uac2.c | 12 ------------ 1 file changed, 12 deletions(-) --- a/drivers/usb/gadget/function/f_uac2.c +++ b/drivers/usb/gadget/function/f_uac2.c @@ -598,18 +598,6 @@ static struct usb_gadget_strings *fn_str NULL, }; -static struct usb_qualifier_descriptor devqual_desc = { - .bLength = sizeof devqual_desc, - .bDescriptorType = USB_DT_DEVICE_QUALIFIER, - - .bcdUSB = cpu_to_le16(0x200), - .bDeviceClass = USB_CLASS_MISC, - .bDeviceSubClass = 0x02, - .bDeviceProtocol = 0x01, - .bNumConfigurations = 1, - .bRESERVED = 0, -}; - static struct usb_interface_assoc_descriptor iad_desc = { .bLength = sizeof iad_desc, .bDescriptorType = USB_DT_INTERFACE_ASSOCIATION,