Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp436981lqp; Mon, 10 Jun 2024 08:30:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUB1k8hsOpIfy2e7mOFAfxFhhaezZ3FD0vMqvzwNB11ToX748VoIjxDm3DHSKSCXp+WdYfJk3H082//zWmrMnRhzSDnImE8omi5V1m6ww== X-Google-Smtp-Source: AGHT+IFgvFSRmHjvaXvUJpyjaYe+d81W0mgkMn+H1l+kAkS+VD9OUymXmLQinjztdwWtlRn1FqWN X-Received: by 2002:a17:90b:1115:b0:2c1:a052:d6b4 with SMTP id 98e67ed59e1d1-2c2bcc12e21mr8320013a91.27.1718033409127; Mon, 10 Jun 2024 08:30:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718033409; cv=pass; d=google.com; s=arc-20160816; b=vgPk9ic8NXEeU7sSKhzkRtQhiomuaZ9epVSB+clrBUQLy3aWLcWP/UCEKZXW9Aaxx2 fWjDdzd+sH9RsWfEmGMV2Fs6Z08bUpgk7Q1xhhfaGZN1dC92lY7XKr2rydI0xiqT7lDP x+Y5lHv7vI8e0hzj55dywbwBVuANOf10cnsILwm6DAYYDhtE6NsiYkQXCjFGsjh5Ut+F FjKlRzq2r5n154dcTVu0ktthkx84IiXTqInONYx6XA9gp1uZQzcilQT1eZojJ4sf3C6J nOqT/6lKYPWR2IC3yO+7vL0pMqYFHRBmNKM46yzi2XTx3PhUg+xx/dGdlWW9rpkpjAqm UYbQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uRrres42tycXAi6N49tFAcVMtnvo+uewkdq/s9fAJEM=; fh=AAGR/n8PHcqDzZPHR9w2S3kk7lngwkUMjoDolSCgIOY=; b=XjMbkWdZA0JYDs/XM89dUZaDUOv3zxqNtB66WSxodL8s9q77RuyRzeXvJketXVvTk1 MsqGmXfhKGBVH+H2jWRYtSnSLjU+M+UZT/TqAl7rx9OPPsvdukTuaTGfg21AK4iBz0GX DCDekVMeOPeIsTjREiQQ5RLPJQOsVMjsVrCAZDgLdZQaQ8XKLn7xisH7WAZ6SDF8FCq8 zcGPb50Ro17b/ORdMrRUjmXoeF/INSpsXUlBiEdCRpMEws7vV6YwogxN+U8r2gkcarxc inF+qKaiZjnXfqjdHq4cyNmLU8yz7WWb7Wr8wqTp5N//7HSHbFpnpfI46+QFRR4vGPkb s7yw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ciNT3QCW; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-208417-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208417-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2806d27fesi8856330a91.140.2024.06.10.08.30.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 08:30:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208417-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ciNT3QCW; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-208417-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208417-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 07B8FB230AB for ; Mon, 10 Jun 2024 15:00:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D87A51E4AF; Mon, 10 Jun 2024 15:00:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ciNT3QCW" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 453BF1E520; Mon, 10 Jun 2024 15:00:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718031621; cv=none; b=C8VLFH9Zi16DblDESLVZKlppFdin8Hyn09V0Fq1zYNEz15plZFg/2ffd5pE2RAPCK1jXsXH6BES7FkdEyCCJpMSFyT1eqXikPhAbhdmV4pFQUZu3jgbcEMb97OS+x2x4NPdh0KRU7HL2fZNKo0eLeixrfcgwJr5oxiHDQ/Nn4kY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718031621; c=relaxed/simple; bh=qdfx3LSp394xk33ligR2kN11eu4UsmLVaDlZWF82WPI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=V7klwjIXC0v79fN8VcGeh2j1ygzmvU7AN8O2B2TYUfJxgVscBtVREu7aMFdNN9Afb8RtaEXu6gSLp7RLsQj7jcrr8SDvxZkWzLwybHPM0qeSTETP9k8GHXuBRSZpEOokoDkecHZCwgZbBRhVOKGu8G5dQcNx9ahzYgFmiS1ieXw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=ciNT3QCW; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7084974C; Mon, 10 Jun 2024 17:00:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1718031603; bh=qdfx3LSp394xk33ligR2kN11eu4UsmLVaDlZWF82WPI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ciNT3QCWYXh+hucAO6BbfTdgjbUmPru4ll4eRpFm1Dnp151JGnez7SEg1f/iqO3Sw QBGxvMNlsSdc+UYfE6x0oGtYH1iUETXjRptr7BZg59MA9SqWouHjGFXgzw7kK7Jndw 2BLJgEUKcjnriXpU7SEYzNv2BI+pttiVbf8j4wSQ= Date: Mon, 10 Jun 2024 17:59:55 +0300 From: Laurent Pinchart To: Ricardo Ribalda Cc: Mauro Carvalho Chehab , Sergey Senozhatsky , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/5] media: uvcvideo: Cleanup version-specific mapping Message-ID: <20240610145955.GT18479@pendragon.ideasonboard.com> References: <20240318-billion-v1-0-2f7bc0ee2030@chromium.org> <20240318-billion-v1-4-2f7bc0ee2030@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240318-billion-v1-4-2f7bc0ee2030@chromium.org> Hi Ricardo, Thank you for the patch. On Mon, Mar 18, 2024 at 11:55:26PM +0000, Ricardo Ribalda wrote: > We do not have more version specific mappings. Let's remove this code > for now. It can be easily reverted later if needed. > > Signed-off-by: Ricardo Ribalda Reviewed-by: Laurent Pinchart > --- > drivers/media/usb/uvc/uvc_ctrl.c | 21 --------------------- > 1 file changed, 21 deletions(-) > > diff --git a/drivers/media/usb/uvc/uvc_ctrl.c b/drivers/media/usb/uvc/uvc_ctrl.c > index 9a0b81aca30d1..41578ded1174e 100644 > --- a/drivers/media/usb/uvc/uvc_ctrl.c > +++ b/drivers/media/usb/uvc/uvc_ctrl.c > @@ -851,14 +851,6 @@ static const struct uvc_control_mapping uvc_ctrl_mappings[] = { > }, > }; > > -static const struct uvc_control_mapping *uvc_ctrl_mappings_uvc11[] = { > - NULL, /* Sentinel */ > -}; > - > -static const struct uvc_control_mapping *uvc_ctrl_mappings_uvc15[] = { > - NULL, /* Sentinel */ > -}; > - > /* ------------------------------------------------------------------------ > * Utility functions > */ > @@ -2660,7 +2652,6 @@ static void uvc_ctrl_prune_entity(struct uvc_device *dev, > static void uvc_ctrl_init_ctrl(struct uvc_video_chain *chain, > struct uvc_control *ctrl) > { > - const struct uvc_control_mapping **mappings; > unsigned int i; > > /* > @@ -2726,18 +2717,6 @@ static void uvc_ctrl_init_ctrl(struct uvc_video_chain *chain, > ctrl->info.selector == mapping->selector) > __uvc_ctrl_add_custom_mapping(chain, ctrl, mapping); > } > - > - /* Finally process version-specific mappings. */ > - mappings = chain->dev->uvc_version < 0x0150 > - ? uvc_ctrl_mappings_uvc11 : uvc_ctrl_mappings_uvc15; > - > - for (i = 0; mappings[i]; ++i) { > - const struct uvc_control_mapping *mapping = mappings[i]; > - > - if (uvc_entity_match_guid(ctrl->entity, mapping->entity) && > - ctrl->info.selector == mapping->selector) > - __uvc_ctrl_add_custom_mapping(chain, ctrl, mapping); > - } > } > > /* -- Regards, Laurent Pinchart