Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752718AbdLMLb6 (ORCPT ); Wed, 13 Dec 2017 06:31:58 -0500 Received: from smtp47.i.mail.ru ([94.100.177.107]:53158 "EHLO smtp47.i.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751910AbdLMLby (ORCPT ); Wed, 13 Dec 2017 06:31:54 -0500 Date: Wed, 13 Dec 2017 14:31:42 +0300 From: Mikhail Zaytsev To: Oliver Neukum Cc: Johan Hovold , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH] USB: serial: ark3116.c: Remove unused TIOCSSERIAL case from ioctl Message-ID: <20171213143142.1c312b57@zaytsev.tver.pg> In-Reply-To: <1513160248.26281.5.camel@suse.com> References: <20171213123004.4619000a@zaytsev.tver.pg> <1513160248.26281.5.camel@suse.com> 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=UTF-8 Authentication-Results: smtp47.i.mail.ru; auth=pass smtp.auth=flashed@mail.ru smtp.mailfrom=flashed@mail.ru X-7FA49CB5: 0D63561A33F958A5E64B38849C21E337E3D6232339BB23288CAB37A1192859FD725E5C173C3A84C3CD83284715018B274D8ECDB5366E535D64E4DC1543031AB7C4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F03FC5E6FBEB4333C3B503F486389A921A5CC5B56E945C8DA X-Mailru-Sender: AAD8E2226B689FDAF6252034B9A76A5C204063CB719BAC83D97A89EA1592C619DE9789092B5ACC5A89FF501873465F1766FEC6BF5C9C28D91C46F632D9E29CE943722207280E957E67EA787935ED9F1B X-Mras: OK Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id vBDBW41M005226 Content-Length: 951 Lines: 27 On Wed, 13 Dec 2017 11:17:28 +0100 Oliver Neukum wrote: > Am Mittwoch, den 13.12.2017, 12:30 +0300 schrieb Mikhail Zaytsev: > > +#define RS232_VENDOR 0x6547 > > +#define RS232_PRODUCT 0x0232 > > +#define IRDA_VENDOR 0x18ec > > +#define IRDA_PRODUCT 0x3118 > >   > >  /* usb timeout of 1 second */ > >  #define ARK_TIMEOUT 1000 > >   > >  static const struct usb_device_id id_table[] = { > > -       { USB_DEVICE(0x6547, 0x0232) }, > > -       { USB_DEVICE(0x18ec, 0x3118) },         /* USB to IrDA adapter */ > > +       { USB_DEVICE(RS232_VENDOR, RS232_PRODUCT) }, > > +       { USB_DEVICE(IRDA_VENDOR, IRDA_PRODUCT) },  /* USB to IrDA adapter */ > > Hi, > > what is the purpose of this change? It just makes it harder to grep. > The constants are arbitrary and they are clearly device IDs. The constants are using in several places. I think the names easier to read. -- Mikhail