Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp212352ybg; Thu, 11 Jun 2020 22:37:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypnL3XZnJeUHO4tTqJXBjBofgrJLg8EGA3FONwWNnMbATZtRsgpDeyUDL9YxRxVVXMmMjF X-Received: by 2002:a50:8ad3:: with SMTP id k19mr4956596edk.162.1591940234381; Thu, 11 Jun 2020 22:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591940234; cv=none; d=google.com; s=arc-20160816; b=kK9Y0aEm4sFCkRmdgCIrj8++d6Fim8dEQXsJ1HbT90rM/Qt8cl1SztccabStgPdDS/ W27WoLJhBk2qyruY7SxDOEBTyopqqvMVlqgeQr09Da84WaZZ4nWNQl7HsrbiwcxUdhBB /65ioMeTvL4/fFvz+CVMmoHbUgFXDcnC+KZdPsV2He5qxdNk1GQL8tpnu7rNtDLgVFoU x550Sp7ijdrxbfZ8lEqgvwIp4MzjdogfUdYDh0OsP/Kbzt9nrlwHtvDcPRUm4Pk14+NJ CQ6OWGmXRZH+rVhxn2C2Rk2lcwOSxUO71Bg8BLGSepPpBB4CbhSt61J5+y1feXECtGvX tIxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bDIpgkDQG7YLT+F0rsdng9S3ADGmLirI0hK3z/BZOuY=; b=C4LF2z7BWg5e1zumhknMT8z1NAj8C572KYiTjKCxRtBbvffBVQi19XsmLdShM2hK/E tpKcPoqjUPF5LlNTfCPtenLceuB82ZKMsSBDySjwDBd0eFZwUrCqHRn7NxpBSohMs+cq L4ladJtvyDOWbtiEGi+VkE/hfZFNzS/oN3CGpham8WPzH/7LF8X/DoQNfYcNqN6mQmdl 2xnvCVgvKhuCY+eScNIFufnstggG9i4+SNgg2lGCkwB7sJpvwaFUn9rJv1ofP1V1VsuF aCLWvdrgc3ckodLb4Q8vK9zhk+t8Wa3/RGQ9VfnE59ZrDB64NLGAW9TABKynC4FVCvQ5 2nPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=kNYQIaTx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q13si3107828edn.496.2020.06.11.22.36.50; Thu, 11 Jun 2020 22:37:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=kNYQIaTx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726468AbgFLFdA (ORCPT + 99 others); Fri, 12 Jun 2020 01:33:00 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:60208 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725763AbgFLFc7 (ORCPT ); Fri, 12 Jun 2020 01:32:59 -0400 X-UUID: 239d2498b3b74fe9acfc7227611e421b-20200612 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=bDIpgkDQG7YLT+F0rsdng9S3ADGmLirI0hK3z/BZOuY=; b=kNYQIaTxVSeR2OoLWSPVuYo5ny3mIuwEwPFcqRNW1L6Cme2nqtm44PF8niJRfA/vZJsHqos5PzR8Bde6+6hjDU1rMQFJj784KxD92LC2v7llcZQMTw4jhQvxxkbmVwp+ilox0FbKzAfNrTr3DEyRAevgvYytmAykm7XDnnJdUPQ=; X-UUID: 239d2498b3b74fe9acfc7227611e421b-20200612 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1990203046; Fri, 12 Jun 2020 13:32:54 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 12 Jun 2020 13:32:51 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 12 Jun 2020 13:32:46 +0800 From: Macpaul Lin To: Felipe Balbi , Greg Kroah-Hartman , Matthias Brugger , , , , , Jim Lin , Siqi Lin CC: Mediatek WSD Upstream , Macpaul Lin , Macpaul Lin Subject: [PATCH] usb: replace hardcoded maximum usb string length by definition Date: Fri, 12 Jun 2020 13:32:47 +0800 Message-ID: <1591939967-29943-1-git-send-email-macpaul.lin@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org UmVwbGFjZSBoYXJkY29kZWQgbWF4aW11bSB1c2Igc3RyaW5nIGxlbmd0aCAoMTI2IGJ5dGVzKSBi eSBkZWZpbml0aW9uDQoiTUFYX1VTQl9TVFJJTkdfTEVOIi4NCg0KU2lnbmVkLW9mZi1ieTogTWFj cGF1bCBMaW4gPG1hY3BhdWwubGluQG1lZGlhdGVrLmNvbT4NCi0tLQ0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