Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp775263rwl; Fri, 31 Mar 2023 02:06:34 -0700 (PDT) X-Google-Smtp-Source: AKy350ZgmZXbnHp81n+k/uSXcXAksM7XOYJPTd7g4KzH/Fady9NNzAQ1aqQCJvVpSA4XmreAqAnP X-Received: by 2002:a17:906:18d:b0:92f:39d9:1e50 with SMTP id 13-20020a170906018d00b0092f39d91e50mr3568716ejb.3.1680253593791; Fri, 31 Mar 2023 02:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680253593; cv=none; d=google.com; s=arc-20160816; b=DHEUdHpljOpNL6wtwMEEoH+evTTbzS6twM8+ZGRss7GPKnfrhusis2GvkDapAFc+CO XmHrZ5TzQJJtf9YUVe5SmUxKr5fJ7uu721pQ9CXWBhuQG8Cg05vJm/2PtT5mVWtQMXEm qZN6AFLjUIvAAWGfaX8aTjW5nUjefW+4DX759mRXASdBma8nwAX+ypwZbn/W4Vhy7ApR ZQ3pUZv6cbz4eOpUKnTnHzkvMY6kDEh9Lcz/JjnVGJYwcfso2h2ZqkqGj2o8bgQRG8vX gpqsEsMkMc+Lr3yDcrUbWL97qe8m7IgQQQ2t9N3C8RYCP9kacTeCt3mYZHfJsTc2UV+U R6uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PoLATXn090Q9ELKeDFQXRbXZTliDL+qSEMllTQfHxvc=; b=BRmcQj4DqKaQDeUV8HKfK5mfWfKskTFBZYGiPwYn8V6+7pHBfZpwA6oTIH2Db8Bqx0 ZUcYEN7fH8qYV3/mex+RCbrE7ef5ZxpFtytzaEO7FIDx6+PVu+0Az075zycZw7flHpyx XkVICJYWq4OlolztoyjzXdEMlnXgE5n4NiErbH9ZgktfneLbmEMpSOgPv96ISmZ1VRwx 3TCXZEgaMq70gNf5EBkyRsRt89CPnqYAbWyba4uebfhiMKQDy7tIQl/HLHFMw8IKQC2p dX3E0RNeuCw2tM1liIcCHRfOy1PPWdzPVROQcqESY28S+6T4povoUwJ63osdnYgnKBim sjeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rfi5gF6D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m9-20020a1709061ec900b009446edc65d5si1421425ejj.532.2023.03.31.02.06.07; Fri, 31 Mar 2023 02:06:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rfi5gF6D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232025AbjCaJFO (ORCPT + 99 others); Fri, 31 Mar 2023 05:05:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232056AbjCaJEv (ORCPT ); Fri, 31 Mar 2023 05:04:51 -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 DE5984C13; Fri, 31 Mar 2023 02:04:44 -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 919E1B82D7B; Fri, 31 Mar 2023 09:04:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B49E1C4339B; Fri, 31 Mar 2023 09:04:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680253482; bh=qklLmKXRzghZt7OhgfJXRO5fuL8vLwwjXsAWaeBPzFA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rfi5gF6DtXxGC8wDmIfKFNSgd88WcXxfT32yf1qYcJvLUIylTBm5g7ebQtcJlbP1q KzFkYRJJAXkYzww5FL1zzMMODXTf4L16IDcX02V+sWxihso21o4hF0DJYjYO+xIsiC aBXDxhc8MNkHkLfO3+lw16shDnRDEM8jx7KkFqZY= Date: Fri, 31 Mar 2023 11:04:39 +0200 From: Greg Kroah-Hartman To: Hans Verkuil Cc: linux-kernel@vger.kernel.org, Mike Isely , Mauro Carvalho Chehab , linux-media@vger.kernel.org Subject: Re: [PATCH] media: pvrusb2: clean up unneeded complexity in pvrusb2 class logic Message-ID: References: <20230329060132.2688621-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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-kernel@vger.kernel.org On Fri, Mar 31, 2023 at 10:08:43AM +0200, Hans Verkuil wrote: > On 29/03/2023 08:01, Greg Kroah-Hartman wrote: > > The pvrusb2 driver struct class logic was dynamically creating a class > > that should have just been static as it did not do anything special and > > was only a wrapper around a stock "struct class" implementation. Clean > > this all up by making a static struct class and modifying the code to > > correctly reference it. > > > > By doing so, lots of unneeded lines of code were removed, and #ifdef > > logic was cleaned up so that the .c files are not cluttered up with > > extra complexity following the proper kernel coding style. > > > > Cc: Mike Isely > > Cc: Mauro Carvalho Chehab > > Cc: linux-media@vger.kernel.org > > Signed-off-by: Greg Kroah-Hartman > > Reviewed-by: Hans Verkuil a Great, thanks for the quick review. greg k-h