Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6301479ybi; Sun, 21 Jul 2019 14:25:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzf++/sCSRJ2rU+YgBtIL07KL18gsX9x13OZqVCcTHfqyMxfhA5Cr4WGv9LmwkyHLXbvGb X-Received: by 2002:a63:1d2:: with SMTP id 201mr33091785pgb.307.1563744348529; Sun, 21 Jul 2019 14:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563744348; cv=none; d=google.com; s=arc-20160816; b=g3ZF3xqmGejySMIocDgteiC+uKQz6aRSAaTSCyH/onP35+cSGG2B/cN+la6aCgtdm5 rPwOki2+8J67h/Uyj2xFM2bPnUBJmX09mxcHIljrSAKBvzVSspgXYk29/LhU8VgTrHcp /sYclvsNND5E/SlUP94DHyHYkCQNsXXWNnXLkcwM8iDR8rSWpNYocvjxt1250O9v/F1b KvdaQyFEGuSAYU4NZfpcp09dnRkFnw+/QperyUT2hp0UbNJLlAO4h+Xuzy7E5OV9F0DX rxnouFddzMCSF/B+EjLWyRIEHKYmIBYWKu4RNtPcPur/HvDyyaiHKhObX0uMIegg7QLA aa6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=+C+U6DTkpZXReblrGUCivE3YxlkYjqKN/tMAQ1bEiC0=; b=nZN5RkB92ba0NTcx0D9KEQ4M99cib6CY0ESZRufQsKf877ENdOPtomI1fK15Tw+rKR vrSCCsl3k0YgeNgxv2PW3rCkYojLtQfNUWfNYJoSgLqU6FX7peJEVEUclMi7kaDGHoMi jE/ZGDN0pJPEwvjFeNhVfoBfSt/RTqPN9YNBOsPR8tmaeOp0CoW83JVAZnz1aTZwSySK LWuEqhcabrP/noh/KLk9BxP1AKgFDh3WWF8/JvI8YBgRulvS/PlvG4FlUWzueJfxKwN7 557Jy0nF9OooI8J5d7RhDexspmwTKgDYsNJT/aKTvXInIBD3SnaznHYHtTKItXcygB1I ONVA== 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 w12si8529248pgs.364.2019.07.21.14.25.08; Sun, 21 Jul 2019 14:25:48 -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 S1726863AbfGUUpo (ORCPT + 99 others); Sun, 21 Jul 2019 16:45:44 -0400 Received: from netrider.rowland.org ([192.131.102.5]:50015 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726432AbfGUUpo (ORCPT ); Sun, 21 Jul 2019 16:45:44 -0400 Received: (qmail 10519 invoked by uid 500); 21 Jul 2019 16:45:43 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 21 Jul 2019 16:45:43 -0400 Date: Sun, 21 Jul 2019 16:45:43 -0400 (EDT) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Joe Perches cc: Pawel Laszczak , , , , , , , , , , , , Subject: Re: [PATCH v10 2/6] usb:common Separated decoding functions from dwc3 driver. In-Reply-To: <4d4a8a02e4ec7fad9213302d17a6acd17851d8da.camel@perches.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 21 Jul 2019, Joe Perches wrote: > On Sun, 2019-07-21 at 19:32 +0100, Pawel Laszczak wrote: > > Patch moves some decoding functions from driver/usb/dwc3/debug.h driver > > to driver/usb/common/debug.c file. These moved functions include: > [] > > diff --git a/drivers/usb/common/debug.c b/drivers/usb/common/debug.c > [] > > +static void usb_decode_set_clear_feature(__u8 bRequestType, __u8 bRequest, > > + __u16 wValue, __u16 wIndex, > > + char *str, size_t size) > > It's probably not necessary to use Hungarian > when moving these functions into generic code. In fact, these are the well known and commonly accepted names for these data values, as given in the USB specification and used in many other places in the Linux USB stack. See for example the definition of struct usb_ctrlrequest in include/uapi/linux/usb/ch9.h. Changing them here would only make the code less readable. Alan Stern