Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752243AbbKONzc (ORCPT ); Sun, 15 Nov 2015 08:55:32 -0500 Received: from dehamd003.servertools24.de ([31.47.254.18]:34537 "EHLO dehamd003.servertools24.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751902AbbKONz3 (ORCPT ); Sun, 15 Nov 2015 08:55:29 -0500 Subject: Re: [PATCH] Sound: Usb: Misc: ua101: replace le16_to_cpu() with usb_endpoint_maxp() To: tiwai@suse.com References: <1447536690-25173-1-git-send-email-thrust73@gmail.com> Cc: Cheah Kok Cheong , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org From: Clemens Ladisch Message-ID: <56488E94.1030609@ladisch.de> Date: Sun, 15 Nov 2015 14:54:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1447536690-25173-1-git-send-email-thrust73@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-PPP-Message-ID: <20151115135524.165927.26537@dehamd003.servertools24.de> X-PPP-Vhost: ladisch.de Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1677 Lines: 48 Cheah Kok Cheong wrote: > Commit 939f325f4a0f ("usb: add usb_endpoint_maxp() macro") > > And commit 29cc88979a88 ("USB: use usb_endpoint_maxp() > instead of le16_to_cpu()") These sentences no verb. > Patched against > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git This does not belong into the commit message. > Signed-off-by: Cheah Kok Cheong Otherwise: Acked-by: Clemens Ladisch > --- > sound/usb/misc/ua101.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/sound/usb/misc/ua101.c b/sound/usb/misc/ua101.c > index 9581089..c19a5dd 100644 > --- a/sound/usb/misc/ua101.c > +++ b/sound/usb/misc/ua101.c > @@ -1037,7 +1037,7 @@ static int detect_usb_format(struct ua101 *ua) > return -ENXIO; > } > ua->capture.usb_pipe = usb_rcvisocpipe(ua->dev, usb_endpoint_num(epd)); > - ua->capture.max_packet_bytes = le16_to_cpu(epd->wMaxPacketSize); > + ua->capture.max_packet_bytes = usb_endpoint_maxp(epd); > > epd = &ua->intf[INTF_PLAYBACK]->altsetting[1].endpoint[0].desc; > if (!usb_endpoint_is_isoc_out(epd)) { > @@ -1045,7 +1045,7 @@ static int detect_usb_format(struct ua101 *ua) > return -ENXIO; > } > ua->playback.usb_pipe = usb_sndisocpipe(ua->dev, usb_endpoint_num(epd)); > - ua->playback.max_packet_bytes = le16_to_cpu(epd->wMaxPacketSize); > + ua->playback.max_packet_bytes = usb_endpoint_maxp(epd); > return 0; > } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/