Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1198130rbb; Mon, 26 Feb 2024 01:40:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWr6+EZj4G++VSRGJRctnfvwwHUvWR/6gVHCd0fI/ufuyFxjCIPTqt+FxiIf1/KEVVzINF/Hcsc+Q8pcUO/h8xivVJWLzFVPhlk95A2Jg== X-Google-Smtp-Source: AGHT+IERHis7F8Oq27wHbZypoyyUh8Ox2kkWZeflrWP1BDs/LlHaeSXfAAT5hVD2P9PO7/rNunCp X-Received: by 2002:aa7:dccd:0:b0:565:7edf:41b3 with SMTP id w13-20020aa7dccd000000b005657edf41b3mr4011377edu.35.1708940441748; Mon, 26 Feb 2024 01:40:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708940441; cv=pass; d=google.com; s=arc-20160816; b=yattYO6BYdr0dthr4oVCkrIPEb6JcSDiM/bywULKJOKbhJOURnEgjcpUWWe9hk3TT1 2Tcc3KTl4E7zETDcCtuiqMSwyGGqjN9W5lTTJtxq6VKrBj11aBqMyIofC7wJXgXCmntc F+Ct+w3tzISykWyL3EpUPtap0nrUZ1fI+Y3OTCpatk9vrtHVwDDMO2JcQKRhynuZcqSV sjZz+WxTtUzW/YZqPGpfpS4V+remdTj2Msu14tC1R3dLwDg2HZ68YUKe5+UTD6R0U3nO FPixLXflz3wXhUYMYuPbQTc6C0Dy6YnElKT5j33PVncOtZhlxzo5yRcoFY9xlA5zPinW FP8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id; bh=OnUgbpSzW+l+vgHXJW2HUndjY5YTzeDglrKcTdi6DOw=; fh=E1AufSl4SgakOPHpKvo2bOV7WDPqR4aCr+RICWKCgOo=; b=LiqUaBTSvTzEb/4MzK4v5KUZkREWvRy/IpgV0qoFaLWgOkaFAgwo5UwfNJgoxAJ1Jd nThNzul7+Ukw3RVgyzXKmWtOfK0eYAi4C+A9SrUFinRfHG5Clv0J4SA+zWA3tUWePVOz 1KOHlbaL5AhK5f2B+CKnd6FHeq6Y5+hnhkuNCVGWIj3cw5LfpFIPjPoYvAC0RtIoq24P kYIIj3knPzdCRKn780W6i85tzy81joKVdLOJtrHM2niLeAvvEsQK/wT3Edkr3pAr4cAs PF1UzLBwAsXt9pgjmtIfohQsHE/N2TJIJ8QfkWx6qHAMKTRaDi7NIVXMoYSQUmqQZQ2W CqUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-81000-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81000-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u9-20020a509509000000b0056383ed3e87si1950830eda.198.2024.02.26.01.40.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 01:40:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81000-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-81000-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81000-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 773F71F26749 for ; Mon, 26 Feb 2024 09:40:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6004378692; Mon, 26 Feb 2024 09:03:21 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CBA6278662; Mon, 26 Feb 2024 09:03:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708938200; cv=none; b=HP9zVWDG7ythrn6s9ExZPF9ws6fSYxpF4x/Xww76X6UwqgamtaV+8QWClTGpcKWz+c15/UUtKsvqDfJ3qE4Ikbk9SP77huasoe3CY99e/bGnpp6tWfGnIyKoaFcLxxBpsz87inSjiuGxSF3zLmWeyeXXl5tiZV2kZ+koCA5wPac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708938200; c=relaxed/simple; bh=J1KT8GnwQs/4uWEXvCjHmvjMvN5a8ew6jtWQPjQ2muQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=H6F4l5LIT7zsEOpLqaxlAZm2DDEQbFj9kTMN7cctRn0oRcTlk1hzR6BOCMqXk9kDyu+J/w1LF644YCG6EUKrzQNxlmlccIB6Cv0dJkE+kep+dPk1Q6ekfPbI/sBiD5TBvURX1LadF+XdgihBI5x4up+YINjkX8fUQF9Y7AAs358= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2EA7C433C7; Mon, 26 Feb 2024 09:03:19 +0000 (UTC) Message-ID: Date: Mon, 26 Feb 2024 10:03:18 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] em28xx-dvb: fix DVB adapter device name Content-Language: en-US, nl To: Mauro Carvalho Chehab Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org References: <973f454413c31ba5b6464c289ee24b01465abaff.1708422122.git.mchehab@kernel.org> From: Hans Verkuil Autocrypt: addr=hverkuil@xs4all.nl; keydata= xsFNBFQ84W0BEAC7EF1iL4s3tY8cRTVkJT/297h0Hz0ypA+ByVM4CdU9sN6ua/YoFlr9k0K4 BFUlg7JzJoUuRbKxkYb8mmqOe722j7N3HO8+ofnio5cAP5W0WwDpM0kM84BeHU0aPSTsWiGR yw55SOK2JBSq7hueotWLfJLobMWhQii0Zd83hGT9SIt9uHaHjgwmtTH7MSTIiaY6N14nw2Ud C6Uykc1va0Wqqc2ov5ihgk/2k2SKa02ookQI3e79laOrbZl5BOXNKR9LguuOZdX4XYR3Zi6/ BsJ7pVCK9xkiVf8svlEl94IHb+sa1KrlgGv3fn5xgzDw8Z222TfFceDL/2EzUyTdWc4GaPMC E/c1B4UOle6ZHg02+I8tZicjzj5+yffv1lB5A1btG+AmoZrgf0X2O1B96fqgHx8w9PIpVERN YsmkfxvhfP3MO3oHh8UY1OLKdlKamMneCLk2up1Zlli347KMjHAVjBAiy8qOguKF9k7HOjif JCLYTkggrRiEiE1xg4tblBNj8WGyKH+u/hwwwBqCd/Px2HvhAsJQ7DwuuB3vBAp845BJYUU3 06kRihFqbO0vEt4QmcQDcbWINeZ2zX5TK7QQ91ldHdqJn6MhXulPKcM8tCkdD8YNXXKyKqNl UVqXnarz8m2JCbHgjEkUlAJCNd6m3pfESLZwSWsLYL49R5yxIwARAQABzSFIYW5zIFZlcmt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nUNZZNslldvXFtndxR0SFat sflovhDxKyhFwXOP0Rv8H378/+14TaykknRBIKEc0+lcr+EMOSUR5eg4aURb8Gc3Uc7fgQ6q UssTXzHPyj1hAyDpfu8DzAwlh4kKFTodxSsKAjI45SLjadSc94/5Gy8645Y1KgBzBPTH7Q== In-Reply-To: <973f454413c31ba5b6464c289ee24b01465abaff.1708422122.git.mchehab@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Mauro, On 20/02/2024 10:46, Mauro Carvalho Chehab wrote: > This will be used for uevent, so it needs to be filled with the > device name, and not with it's parent ID. > > Signed-off-by: Mauro Carvalho Chehab > --- > drivers/media/usb/em28xx/em28xx-dvb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c b/drivers/media/usb/em28xx/em28xx-dvb.c > index 9fce59979e3b..759c04fbd8cf 100644 > --- a/drivers/media/usb/em28xx/em28xx-dvb.c > +++ b/drivers/media/usb/em28xx/em28xx-dvb.c > @@ -980,7 +980,7 @@ static int em28xx_register_dvb(struct em28xx_dvb *dvb, struct module *module, > > /* register adapter */ > result = dvb_register_adapter(&dvb->adapter, > - dev_name(&dev->intf->dev), module, > + em28xx_boards[dev->model].name, module, It is not clear what the 'adapter name' should be: looking at how this is used today it is either the name of the card or the name of the driver module (KBUILD_MODNAME or a hardcoded string). This driver appears to be the only one that uses dev_name, but I did not do an exhaustive search, so there may be more. In any case, I think this should be consistent and documented somewhere. Personally, I think using the model/card name would be best. But how does this relate to the name reported by FE_GET_INFO? Is it supposed to be the same name? Is that handled correctly or documented somewhere? Regards, Hans > device, adapter_nr); > if (result < 0) { > dev_warn(&dev->intf->dev,