Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5615124pxb; Mon, 28 Mar 2022 15:00:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSnmLDPSzCPT2jmQ6L3vc7B3KONWtfKAE7+L8O6225msxDHdTVd17mJa7Tk2p591gN2yEC X-Received: by 2002:a05:6871:1d0:b0:da:b3f:3210 with SMTP id q16-20020a05687101d000b000da0b3f3210mr642438oad.192.1648504848773; Mon, 28 Mar 2022 15:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648504848; cv=none; d=google.com; s=arc-20160816; b=V4gPUQM7cDmwPat+qqFP6Rkoz0C1OGwTgjKfA3kCHQ6sHBjois40FvQLpHLRAS+Q0B qOBbIgshNKoBKmKLi6sNs1/XZW+d7MfJCs5v41+KSx5+pIRVfK2tw6GgURxoaZyEtlAw gtnnOVprqgbCvWiGIli/0FDDrQVuixnNg/NI90LjvVfgCcL7avyhKoW3ROQk+Nzn/2Ez Uba+JCFlyRK4hLTJkitQbY0KiyZXE7n8wpU94GPm5T7OB9Epr/yraGaazE9VEB6wlnqF u6LIc0sR2fwNI0xlhsJ0Y2jCPWWd0JEipttWrpBv6a1YYvGKpCdp/SKNNtIvaHrmTFKu djEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=ITgZZD9CdcP3xAt18phkKORlX0jfwnrlnsj//CmELT8=; b=mJo42uvgvRmwQCu817lel03ZOY0nDZP2cLl8GAM9tkFv87/4RHh/PaUYv/ZRVJLBAh eWhc7nW79vEPVUX6UUFixdlqYz1PTYkw8jdQzhcgt9iZeFjE4Z7NBCBRdHpyZM+mpkj1 j2a8ubGYVTg7ZhiH7lKg9YgS9Z+SdVDP2W2NBzK60k4NYmemNP40eVRgE776/xkZL8+p /Jhbb+nZzu5HlsLJH6l6Q0NRl8sLtUlg2/aimBD45JvOjV39ZvuTNM57AsOE7M+yEjfz XtdIyJx7nslh6NA828ybM0LA7MeeXqodUZRQnZ8vPPM+HsYw/hHOxz084WAWsp6SsglO 6dMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=MxOsfq8t; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id l3-20020a0568301d6300b005cb2fc1379bsi11174011oti.23.2022.03.28.15.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 15:00:48 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=MxOsfq8t; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2FC9813AA3B; Mon, 28 Mar 2022 14:26:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346271AbiC1Us1 (ORCPT + 99 others); Mon, 28 Mar 2022 16:48:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345667AbiC1Un0 (ORCPT ); Mon, 28 Mar 2022 16:43:26 -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 49BD366AF7; Mon, 28 Mar 2022 13:41:45 -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 E7567B81213; Mon, 28 Mar 2022 20:41:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A75ECC34111; Mon, 28 Mar 2022 20:41:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648500102; bh=dxOGR/DJv+ktdWiQTmecLhQ3kvCEs9EGdMO3bsnvbVI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MxOsfq8tLsZgSJdcdcJDaI2CWxZJfsbXyhcTcnA9xnFmu+itMojkbLSY+87cXcW8C zjpz+5c8+EnUUjkc2l8N9n+kPtClIyIXxrMfEbbNw6Pn4mMd5jUUOyZaK/aZxgjLRj so+xo4CaSkYhKqTzNGhmPMQy1/NJtepu5F09WDXqTt2e2clQ6Sfp3cKuIEVGg1OZwr 1XFmHVia56atGJH3Gk04RP87Xua/5CrwVcj/P0LxgBQt7hpxG4MY5cl0gRbh9R3m9d lwFJCSP7iQBuPoI91lgwG4nSQq/PdCp25pOI3j40B+uFPg1UOmGxRoo1YoUAC7cImG QtRCNa087ibeA== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1nYwBI-000lcK-91; Mon, 28 Mar 2022 22:41:40 +0200 From: Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab , Dongliang Mu , Sean Young , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH 08/26] media: cinergyT2-core: use the newer dvb-usb macros for USB device Date: Mon, 28 Mar 2022 22:41:20 +0200 Message-Id: <4b8212adab277a2bf84ab04480eb6fd37edda74f.1648499509.git.mchehab@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to make the drivers under dvb-usb more homogeneous, use the new macro and an enum with the USB model supported by this driver. Signed-off-by: Mauro Carvalho Chehab --- To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH 00/26] at: https://lore.kernel.org/all/cover.1648499509.git.mchehab@kernel.org/ drivers/media/usb/dvb-usb/cinergyT2-core.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/media/usb/dvb-usb/cinergyT2-core.c b/drivers/media/usb/dvb-usb/cinergyT2-core.c index 405b0c9a792c..4926c954e29a 100644 --- a/drivers/media/usb/dvb-usb/cinergyT2-core.c +++ b/drivers/media/usb/dvb-usb/cinergyT2-core.c @@ -193,9 +193,13 @@ static int cinergyt2_usb_probe(struct usb_interface *intf, THIS_MODULE, NULL, adapter_nr); } +enum { + TERRATEC_CINERGY_T2, +}; + static struct usb_device_id cinergyt2_usb_table[] = { - { USB_DEVICE(USB_VID_TERRATEC, USB_PID_TERRATEC_CINERGY_T2) }, - { 0 } + DVB_USB_DEV(TERRATEC, TERRATEC_CINERGY_T2), + { } }; MODULE_DEVICE_TABLE(usb, cinergyt2_usb_table); @@ -240,7 +244,7 @@ static const struct dvb_usb_device_properties cinergyt2_properties = { .devices = { { .name = "TerraTec/qanu USB2.0 Highspeed DVB-T Receiver", .cold_ids = {NULL}, - .warm_ids = { &cinergyt2_usb_table[0], NULL }, + .warm_ids = { &cinergyt2_usb_table[TERRATEC_CINERGY_T2], NULL }, }, { NULL }, } -- 2.35.1