Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2340975imm; Thu, 7 Jun 2018 09:03:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJwDYbIQA3dxRloAC+P5tJ9Y8kjdsxS8Hp1Ogo3LmiFeYuzkYyRGyIwZqcl07/Cw/zGL6Z7 X-Received: by 2002:a62:1282:: with SMTP id 2-v6mr2316572pfs.243.1528387405727; Thu, 07 Jun 2018 09:03:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528387405; cv=none; d=google.com; s=arc-20160816; b=Firr/PXYYauZ+/9dpQUs0AhVJrBXaEL5+BMzpQHhl0SHASa+zorAb41yg2wYX+657N S4d9oTCXyT08mWVBX2oJIoxd5fW2XQ0ZNcQUvUrBSvKcs7sFciKz+jr+m4HlRrPI7rEt kfBYDocHVLiKA833iPWDymgbvbOSJ8HAYhi6AceePnZr5Dbpdp3/M6b0ze1S69hDhfWU zmaCL4rEYsdQtABIkU5mX/OPS5opS8U0wmEHF0ds7M2UF3R24fzzbratMxJfOjSO1SA2 CdSgeKSsMJSp5yexpLr5aqQZ0YG95D4n0tXaCha/7ID3cvcuuSb01P2qQnY/Cm4WoFD/ L9bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=nLdl+BWDu9Fkr8Z4nRglf7KgwoqUwqi7UuAxa06q5kw=; b=TZLdDP7yxhUclYmqDecvmGTu2LvtlS/UbayETY5qa/gg4t+0TQ1P5k8whMMpSn/C1C Z4aXIPX+ngmKA1j5W+iUHLZNirdmVdSds7QR3ENESiAmMxucPvEoF8CdljwchMfKk6jF xVR1KlSDzaby/u1M5Y68a4VHqLcQyLNR8m5mP8NJFzW4LRy+nYkciOKl86OtVudFfwlY 2ZDgKJz9KRj4uS7jggiFYJmYgaLCZz+UYO4pwNG6DjGJTvvDOo5HIulr4dgk/8UkFHrV zO16obavdv2q2L4i6/2Yy77D+4x6d5B28mK0Gbs42gc2CzZTl1QLJFXJtyFRZLB9d9Ym RVTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s2-v6si26718614plq.372.2018.06.07.09.03.06; Thu, 07 Jun 2018 09:03:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935534AbeFGQAk (ORCPT + 99 others); Thu, 7 Jun 2018 12:00:40 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:39319 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933042AbeFGOJH (ORCPT ); Thu, 7 Jun 2018 10:09:07 -0400 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvb7-0005Zm-BJ; Thu, 07 Jun 2018 15:09:05 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvb3-0002v0-L4; Thu, 07 Jun 2018 15:09:01 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Johan Hovold" Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 152/410] USB: serial: add support for multi-port simple drivers In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.57-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Johan Hovold commit b9f040389e23fb95fde36cb0a3c2c516fb3e9d1c upstream. Add support for multi-port simple drivers. Signed-off-by: Johan Hovold Signed-off-by: Ben Hutchings --- drivers/usb/serial/usb-serial-simple.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/usb/serial/usb-serial-simple.c +++ b/drivers/usb/serial/usb-serial-simple.c @@ -20,7 +20,7 @@ #include #include -#define DEVICE(vendor, IDS) \ +#define DEVICE_N(vendor, IDS, nport) \ static const struct usb_device_id vendor##_id_table[] = { \ IDS(), \ { }, \ @@ -31,9 +31,10 @@ static struct usb_serial_driver vendor## .name = #vendor, \ }, \ .id_table = vendor##_id_table, \ - .num_ports = 1, \ + .num_ports = nport, \ }; +#define DEVICE(vendor, IDS) DEVICE_N(vendor, IDS, 1) /* ZIO Motherboard USB driver */ #define ZIO_IDS() \