Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5650882pxb; Mon, 28 Mar 2022 15:31:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyhAqGfBTl8HFo5RL1o4o8KK4XTThqadXwYxyF82Em3F8saXFeksgflUM0O49/G/+3Nqpg X-Received: by 2002:a05:6830:20d6:b0:5cd:930d:10a9 with SMTP id z22-20020a05683020d600b005cd930d10a9mr11020967otq.55.1648506670614; Mon, 28 Mar 2022 15:31:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648506670; cv=none; d=google.com; s=arc-20160816; b=M6vXvrxcAMI6nHbzYz/c5p0YgI2OSmC0p8FU7Zvzd5/3QbPI8FRTJOBJXYXlLC7Ly1 a+ecdGcepvo5jiLk2HAFKH4WIKzow7wnrv9wagI30mNmVDDJ7F3PT+Wk+9/IWCj6lKJN RDM5s9IACYnVl9kR1LfV4V0M7HVCi9ROjAI/VAJxk0926nNKUeso/2MP3DYH/8ZELU64 aH7nRfp1g7kxpxGkqk0T5y5Na0lE+QzC0wDQjoes1hDCJQKU4Xsjqmie8v4CALYYcMZe ciTcKCO/1lbMl+9DsKr4nXxchEvTsTKBetRUEPmY4t4+tY8R356irxv5SSbVS90w0wL4 Askw== 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=tL8TjiKmR8QYfuI5Yb17Jb6QlKfDkNhuQb8ZYKv3URs=; b=dOj9EW0fPpBySlLd0pinupeGEJLRSc8et1s0dKXK7QJoBDKqtI9839AtSWUqWjMPsT xW9mmhl7Osb8CAUc9vuygdVvIwloLdZkLoFCHIBTnocYXpZYa3xPgsXgocRJaZ9pye4C O3a3ChQCa80VksTushmWfpVFl9g6qO9J+eG6MkudDcm6YqYRbIzjQrSi+SeQ5pydaAxR fT9wRznW3VIbtuaFy/2haWgVUwF9QTnzOOL+Np87XwA2XNbyySPYV0iEKk9/69kcTmIz sQBjPIFfASFK9j0WQq0CugZf7vmm6QydQfgSAAEYSIBdxpnNyanrSX/BxdggibqoDAhe L+/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=ABswXVV5; 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 n12-20020a056870034c00b000da716e6198si11321942oaf.33.2022.03.28.15.31.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 15:31:10 -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=ABswXVV5; 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 4DEBA985AE; Mon, 28 Mar 2022 14:43:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345739AbiC1UrY (ORCPT + 99 others); Mon, 28 Mar 2022 16:47:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345678AbiC1Un1 (ORCPT ); Mon, 28 Mar 2022 16:43:27 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6629F66AD2; Mon, 28 Mar 2022 13:41:46 -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 sin.source.kernel.org (Postfix) with ESMTPS id BD2D1CE170B; Mon, 28 Mar 2022 20:41:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC9B4C34117; 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=9HZjksUabmOm37G5sc/HJE9SBSEyfBlYvIZOWWpC4hE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ABswXVV5gQuCk9AD/wtL8bO+BypW0m8y+ANAQ5rnByh5DMEvWtpqrsgbAg0JsEJ9c VT9ZhC4q8iRP+vYd/N/27I+V+4EniwELQuULlz4lgsnjuy5r171ufFlmoYBAXqFM/E jGX9CNMzMX2t5ZaN4NWUJpLoSSP8V+i8PHqAY/8M2WfwjP5OQAKe6SZl5vXqK83/CJ WjJSYbnnBNWrf9t2Fj0Xe4IgSrFQVuC/POsAdh3Ck3bQAk6NcGLdfkeeEGbONH+u3p 75S6fEbN/Cf+qBa4eGs7S32hQ8tLXoiL6fjlsG+ZeuucRpLhQZrDx0wQiW25CvdXAl XOcDh/+HdwqSA== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1nYwBI-000lcC-55; Mon, 28 Mar 2022 22:41:40 +0200 From: Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH 06/26] media: af9005: use the newer dvb-usb macros for USB device Date: Mon, 28 Mar 2022 22:41:18 +0200 Message-Id: <9b1749763465815af92f0a4d8f210fe170c549d5.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. 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/af9005.c | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers/media/usb/dvb-usb/af9005.c b/drivers/media/usb/dvb-usb/af9005.c index b6a2436d16e9..0827bf3d4e8c 100644 --- a/drivers/media/usb/dvb-usb/af9005.c +++ b/drivers/media/usb/dvb-usb/af9005.c @@ -994,19 +994,16 @@ static int af9005_usb_probe(struct usb_interface *intf, THIS_MODULE, NULL, adapter_nr); } -enum af9005_usb_table_entry { +enum { AFATECH_AF9005, - TERRATEC_AF9005, - ANSONIC_AF9005, + TERRATEC_CINERGY_T_USB_XE, + ANSONIC_DVBT_USB, }; static struct usb_device_id af9005_usb_table[] = { - [AFATECH_AF9005] = {USB_DEVICE(USB_VID_AFATECH, - USB_PID_AFATECH_AF9005)}, - [TERRATEC_AF9005] = {USB_DEVICE(USB_VID_TERRATEC, - USB_PID_TERRATEC_CINERGY_T_USB_XE)}, - [ANSONIC_AF9005] = {USB_DEVICE(USB_VID_ANSONIC, - USB_PID_ANSONIC_DVBT_USB)}, + DVB_USB_DEV(AFATECH, AFATECH_AF9005), + DVB_USB_DEV(TERRATEC, TERRATEC_CINERGY_T_USB_XE), + DVB_USB_DEV(ANSONIC, ANSONIC_DVBT_USB), { } }; @@ -1071,11 +1068,11 @@ static struct dvb_usb_device_properties af9005_properties = { .warm_ids = {NULL}, }, {.name = "TerraTec Cinergy T USB XE", - .cold_ids = {&af9005_usb_table[TERRATEC_AF9005], NULL}, + .cold_ids = {&af9005_usb_table[TERRATEC_CINERGY_T_USB_XE], NULL}, .warm_ids = {NULL}, }, {.name = "Ansonic DVB-T USB1.1 stick", - .cold_ids = {&af9005_usb_table[ANSONIC_AF9005], NULL}, + .cold_ids = {&af9005_usb_table[ANSONIC_DVBT_USB], NULL}, .warm_ids = {NULL}, }, {NULL}, -- 2.35.1