Received: by 2002:a05:6512:2355:0:0:0:0 with SMTP id p21csp5516533lfu; Mon, 28 Mar 2022 15:48:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb4v9Fv9WyA6ePVka6yqbZyiRBVWZ78tyUMEDrh/F8a4QN6pa6ICzM02VE6vSDMdTPfZK3 X-Received: by 2002:a05:6a00:1341:b0:4fa:a3af:6ba3 with SMTP id k1-20020a056a00134100b004faa3af6ba3mr25062801pfu.51.1648507730578; Mon, 28 Mar 2022 15:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648507730; cv=none; d=google.com; s=arc-20160816; b=NH2gm8DdBi6Hde/TByccikg+rRDnACHR0DRudF/ZdCGNCjLd1YcBumuyi+r4Q9tEJL i3+japPKU/5ljdGKc8wxxdoIEgz0hd7u2paKfAFKTog+SGUfhljwuqt+PmmEAEJzHP9h 9XhwFrqOKRYwEdBXAK/FEQ5ofHe/bnbvPdAURpCO0lJ+g2FGyzuF8pSz3Cb1Ok4AhfBv PD2qQc2b7vToqtNDZrygToV72+bilNzL9GXWJG56Iau0F/vnlQpS8k87ZN5+N4G/jSk5 UgDhNR4c66k32qIcBm7Dn1KnosZl9j8pVIGek3XJ1f9RlJhnR+pwANe9XSsQ9MD7JicB uhFw== 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=df+DbaCEeN+hqY2kr7X+syVp7mUqUYqcCL7X6g2nSd8=; b=tltwK+IeVGcMcdIYSAGfkj0rj4r+d3GHqejwrzSBTqKKREKdOoMJJm6QtogKJ2hxF9 FsTqviyfP8z3bYHEZZG+baMJp8mK5L5L5rsnF/sGMWYpS2deTC5pBopYFkFALP6c572U 6ZGAHWBvSTXCBF2y6bSOk+Dwv7TOjbE7NZ54uiPstwJ0VVAdnMYPA6s2WFOvHHfr1epL eB//h3yyESuCYHorypDBFvjNnldusPvjXqje+bqIhAuLnf4NnpY/Pek8RVm5OJjjkF21 fw15Phv1jV+rrK9tpoOUgkCPzEWphij3AXZmZhLkEY7AuUbQ27dcz9P6xNNACXpiBYyF NhMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=EBNGwfhi; 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 t16-20020a170902b21000b00153b2d16529si13545232plr.305.2022.03.28.15.48.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 15:48:50 -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=EBNGwfhi; 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 B082C1FDFFB; Mon, 28 Mar 2022 14:53:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346108AbiC1UsQ (ORCPT + 99 others); Mon, 28 Mar 2022 16:48:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345695AbiC1Un2 (ORCPT ); Mon, 28 Mar 2022 16:43:28 -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 AB46A66AF9; Mon, 28 Mar 2022 13:41:47 -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 65F65B81219; Mon, 28 Mar 2022 20:41:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD95DC36AE2; 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=QzQoNs68jW+xI6V/AO2/hYHoODXE7W40VrXyZsKu0h0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EBNGwfhiLKxRrZbiDzg4Oqg/CqeVhvgp8WmqmRoljNmqbl7G7r/I6kYfRl88Aq/zU TVJ76WDdsIP6ZKXKdC4ajI4JwokvyuaBtG6bXaAxifP1jytue4dXNo+IasGsd4STD6 7ntLHLuhbWjv8WLYC7jK35oS27kVY0zh9axBAQ04ZMH1Vi2t9q0JayIhty06As5cfd LyDXZuZZSHbNq7EQW9gJwr0x/dfproYjmH3xfNAT/qn2VZdQXwzvHN7Q/bpLJCvT4x 1gYuN+oKYjhFqJSOAm0FVYu0+ctt3tmG6lnA/rQ89jouoAH48xpiXmfFsQytAsjiwg /9JNfpP6eIItw== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1nYwBI-000lca-F4; Mon, 28 Mar 2022 22:41:40 +0200 From: Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab , Hans Verkuil , Johan Hovold , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH 12/26] media: dtv5100: use the newer dvb-usb macros for USB device Date: Mon, 28 Mar 2022 22:41:24 +0200 Message-Id: <6e7183735aacf33fff86bc709a38aafb6b858dff.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/dtv5100.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/media/usb/dvb-usb/dtv5100.c b/drivers/media/usb/dvb-usb/dtv5100.c index b644c1302c84..56c9d521a34a 100644 --- a/drivers/media/usb/dvb-usb/dtv5100.c +++ b/drivers/media/usb/dvb-usb/dtv5100.c @@ -162,10 +162,15 @@ static int dtv5100_probe(struct usb_interface *intf, return 0; } +enum { + AME_DTV5100, +}; + static struct usb_device_id dtv5100_table[] = { - { USB_DEVICE(USB_VID_AME, USB_PID_AME_DTV5100) }, - { } /* Terminating entry */ + DVB_USB_DEV(AME, AME_DTV5100), + { } }; + MODULE_DEVICE_TABLE(usb, dtv5100_table); static struct dvb_usb_device_properties dtv5100_properties = { @@ -201,7 +206,7 @@ static struct dvb_usb_device_properties dtv5100_properties = { { .name = "AME DTV-5100 USB2.0 DVB-T", .cold_ids = { NULL }, - .warm_ids = { &dtv5100_table[0], NULL }, + .warm_ids = { &dtv5100_table[AME_DTV5100], NULL }, }, } }; -- 2.35.1