From patchwork Thu Jun 9 14:26:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 83805 Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1nzJ7N-00De69-O1; Thu, 09 Jun 2022 14:26:37 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343593AbiFIO0f (ORCPT + 1 other); Thu, 9 Jun 2022 10:26:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244646AbiFIO0a (ORCPT ); Thu, 9 Jun 2022 10:26:30 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 968A472224; Thu, 9 Jun 2022 07:26:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4B2F9B82E00; Thu, 9 Jun 2022 14:26:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B602C341C0; Thu, 9 Jun 2022 14:26:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654784787; bh=BDkDwzqe/xNBOHFU1U6C1lsC1hcKmfItFKnBeNnP+vI=; h=From:To:Cc:Subject:Date:From; b=XfrS1xqToL6zmX8vhCK37yyiLPLH5/9EELt1AUy7r2ZTeeUpyYvJ56q65qfhmTyzq iEt7Rhu0ergtsNxsDVgIPAdZdnuCXbS6VCzecfPmxNLUkv6VTWudupHhNB6dxNHdEk xr2yatDfRyw1fXpLhGHRlttwyCId70IkgU3FgqjUR5Jz7562NNqzA1CP3dfPDOXUre RO7WwZOTmoyAewCf1tv2eoO+kfJ2rRsaBTfZFmHWZDm8OglUtJ2riThwhs6qhht0he FUE0QjyV6Uni5V12S4pHY6NjGCMDaX3WqSd+ge958JS9GJYyvfYz6yH6EbRKyOSuMi UizZuPlfm0ZGw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1nzJ79-00069J-5j; Thu, 09 Jun 2022 16:26:23 +0200 From: Johan Hovold To: Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 0/3] media: flexcop-usb: probe cleanups Date: Thu, 9 Jun 2022 16:26:02 +0200 Message-Id: <20220609142605.23620-1-johan@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -3.1 (---) X-LSpam-Report: No, score=-3.1 required=5.0 tests=BAYES_00=-1.9,DKIMWL_WL_HIGH=0.001,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,DKIM_VALID_EF=-0.1,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no This series cleans up the probe helper functions a bit to make the code more readable. Note that these apply on top of the fix posted here: https://lore.kernel.org/all/20220609135341.19941-1-johan@kernel.org/ Johan Johan Hovold (3): media: flexcop-usb: clean up endpoint sanity checks media: flexcop-usb: clean up URB initialisation media: flexcop-usb: use usb_endpoint_maxp() drivers/media/usb/b2c2/flexcop-usb.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-)