Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753108AbdLMNox (ORCPT ); Wed, 13 Dec 2017 08:44:53 -0500 Received: from smtp40.i.mail.ru ([94.100.177.100]:45434 "EHLO smtp40.i.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752714AbdLMNou (ORCPT ); Wed, 13 Dec 2017 08:44:50 -0500 Date: Wed, 13 Dec 2017 16:44:39 +0300 From: Mikhail Zaytsev To: Johan Hovold Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] USB: serial: ark3116.c: ioctl changes Message-ID: <20171213164439.1ff82bb9@zaytsev.tver.pg> In-Reply-To: <20171213112445.GB3831@localhost> References: <20171213123004.4619000a@zaytsev.tver.pg> <20171213112445.GB3831@localhost> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Authentication-Results: smtp40.i.mail.ru; auth=pass smtp.auth=flashed@mail.ru smtp.mailfrom=flashed@mail.ru X-7FA49CB5: 0D63561A33F958A56311E6E9762DF0D61B6C3063133775C8C51E545D75AB5742725E5C173C3A84C3EB868C3EEB441C6B669BD31DA71DBB6979C543ECCDAE434EC4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F9007B117A3693DAE3B503F486389A921A5CC5B56E945C8DA X-Mailru-Sender: AAD8E2226B689FDAF6252034B9A76A5C3BE0AE229DBDBC0B35C65AA920198D7BDB8AAE7EF77B6C1D89FF501873465F1766FEC6BF5C9C28D91C46F632D9E29CE943722207280E957E67EA787935ED9F1B X-Mras: OK Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 457 Lines: 13 The patch removes unused TIOCSSERIAL case from ioctl. TIOCGSERIAL case moves to the get_serial_info() function. Some magic numbers moves to #define directives. Mikhail Zaytsev (2): USB: serial: ark3116.c: Remove unused TIOCSSERIAL ioctl case. USB: serial: ark3116.c: Move TIOCGSERIAL ioctl case to function. drivers/usb/serial/ark3116.c | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) -- 2.11.0