Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2121878lqa; Tue, 30 Apr 2024 08:40:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVCwxCTv6QdIjottfJeF1P69UayCM91/WwqjTWD+tzhlviJIsXDd/vrgGmPezBhDONFNkHtVpOByma8Hg2tYb5Tek1s6U8VQzQJCj62LA== X-Google-Smtp-Source: AGHT+IGcvVowlWefPuAx37mLHGjYCGF6a40x82AROJxlm33CsygQU0KyA8ykwUGgQJTaL918h4K/ X-Received: by 2002:a05:6a20:3241:b0:1a8:4254:5cdf with SMTP id hm1-20020a056a20324100b001a842545cdfmr189828pzc.22.1714491629161; Tue, 30 Apr 2024 08:40:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714491629; cv=pass; d=google.com; s=arc-20160816; b=V3eUMiIu8iSFsJ8d6Z8cc6Gj/AkNAMEG9XUtmFcZKAVeX4DeukBg1onPHk2Hmz8Pzq 7FTMMSZOqvtn95CPac0wmOsJes4ZptcTQ/1ouszqfVAY/5A5513NqdiTtNJCVRAUJEt+ UGwvBaoa9dDlIDowfMHx9WUPZkcCuyHUI4821zIwSIFbYLtdWjZ/Deeu9ny14gwfAV+/ PPXVG/W7WWBy/zvDL9wN9YdYXG1dRR9dhlYgSifsOzztfITrPDGooi9zGtOyFEn6wtYi QqShuUyvYBeZeJvlupL+wSmgpoHfU9XJ/04sJGa+gU8xNp4B0OtoaX2rpNeDNnBrua5I SmSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=Y9JNZ6Cx9g59ie9YmDLLN+ZOqEo25c3Pg7sUXqncDzk=; fh=iAOvIWyT9HEOYlpGJois8OT7of2IIg9UF04+7Q16B/8=; b=VWg0/cVPoNJaZ4qCi002JQAI5h3OSSpIcnJN5COYK+RCW0oYuECzU1HyFk5rPPTCpB L8o6Hb6c5JTYt6uPNCUWjgiXixF1mvzDjHDMrWvjbXPTuprQSwRZ8r00XUiT+GMJOgaX vaWKduzKCNvnT2mWQTbnrFpmGmVf5JeZD6UjMdTBJRf5UnVEI7ZSH9wX142O/6trhxOf D0j1s0lW7djL6wjX7KwBhmf3zOCFpsQNF/EIqyTZvdIZwPC0FCl3I1aPV1VGps2vfV9B JtOUckrbjkQQuTS7+ZefJK42rXwOJjDWPPiKyljcM+9/dFg1jwcvwbqjmJjH4lTpSatJ l5Yg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mess.org header.s=2020 header.b=bvNQyhix; dkim=pass header.i=@mess.org header.s=2020 header.b=TVaBAxDq; arc=pass (i=1 spf=pass spfdomain=mess.org dkim=pass dkdomain=mess.org dkim=pass dkdomain=mess.org dmarc=pass fromdomain=mess.org); spf=pass (google.com: domain of linux-kernel+bounces-164232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mess.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id lp13-20020a056a003d4d00b006e6a17088e1si22890674pfb.46.2024.04.30.08.40.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 08:40:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@mess.org header.s=2020 header.b=bvNQyhix; dkim=pass header.i=@mess.org header.s=2020 header.b=TVaBAxDq; arc=pass (i=1 spf=pass spfdomain=mess.org dkim=pass dkdomain=mess.org dkim=pass dkdomain=mess.org dmarc=pass fromdomain=mess.org); spf=pass (google.com: domain of linux-kernel+bounces-164232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mess.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9F417B21225 for ; Tue, 30 Apr 2024 15:07:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E316A12CDB5; Tue, 30 Apr 2024 15:07:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b="bvNQyhix"; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b="TVaBAxDq" Received: from gofer.mess.org (gofer.mess.org [88.97.38.141]) (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 1E507152799; Tue, 30 Apr 2024 15:07:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=88.97.38.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714489644; cv=none; b=Xl/Qv1ofJV2IzCN/JrjRvSyu58tgfiHrjsaXg4lGYfYD1XuPUtax/q9RERRegXSaTNWxVzpOSsJa/BnrgM5K/DnwIWmkUivYZyJZi+J2laS8xT4Xm6Rqn0bw4MOl57NnBg+hKgpQdb7BKx5Y6ItJ84vzkMGic4DZEn+JsZUbqIk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714489644; c=relaxed/simple; bh=P1Yb9UHx7qGFrtffHgDWXFAhgYxkjfHOuo9CX+hCpI4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IRkG2yisznq3Gz2NGaEfuAs8HoYfiB9wLdh5b4DuG9slMg4jN4BwCd6o7tF5tKgen0jXt5w8Kw7JqJV8LEcso7Sj/hBTahIy4duniwIOrM7UEkwtsOkKzcxADjwP68KckN8Ok36t4Fw1kKQbm3Nz5eUN8AgwqfPPWohXcWfJey8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mess.org; spf=pass smtp.mailfrom=mess.org; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b=bvNQyhix; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b=TVaBAxDq; arc=none smtp.client-ip=88.97.38.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mess.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mess.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1714489595; bh=P1Yb9UHx7qGFrtffHgDWXFAhgYxkjfHOuo9CX+hCpI4=; h=From:To:Cc:Subject:Date:From; b=bvNQyhixOJxDveSCSESDcnJXpADudXP+EY3U3UiW+drSxGzfBtS4WR8+qzvQalPbN kRcoFsm/hGV0p4geuzGMHgmIM+Dhf/rTLHPqKzcS1TDbsdt1h+H8hjmjSlzBWAggAY 9sj/A+F7p/jnix7XILY9Lu9wJnCPAOYUYJ9AJMAjLOlxrpPBjY06enfBReQ8DmFAjH lUvSrEfqtdE27cv70BtHWbaXZ04eAif1evWmRyhQpv792NcyTnq51a02BTxSNlVfT+ NaWTy2zqSgWK2ZcYOnh2wkSVw6GBiiv6eFaFl2MnZBgKVWT4KCw4l5eMQAnozJbUE2 A/cN7Meii3GFw== Received: by gofer.mess.org (Postfix, from userid 501) id CB49C1000C2; Tue, 30 Apr 2024 16:06:35 +0100 (BST) X-Spam-Level: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1714489594; bh=P1Yb9UHx7qGFrtffHgDWXFAhgYxkjfHOuo9CX+hCpI4=; h=From:To:Cc:Subject:Date:From; b=TVaBAxDqrqd1HfdhBISAYP1yj0KARVCrzP8aUHr/A1f5nFwVMpDnlzY7d3G/d7Atw i0Gy0pCi18M5VkxttJbCh7Dj8BMSLv2ulBFLzjZmDhreTRjAQDqkVQt0UWitc2pB+A S3z9leuhqjZ3DysXu7DqEyjj8epZJHsDbKrUfvYjEZSdyjbWZORljECXWZ6D6X/Yu+ qMhDlhBw7AiVF/cLd0MHARO5PD/mQstzfYBS4Bcb/zUOR8+rXtpipJ05J8GX2fy6Fb N8ZC13RBU/o087Y7S/L4Brk+gOXFBNhf/tmV7oTFN6f4uSgRhzz/XZ0o5VYvGs51Jy PKVs4COS55+wQ== Received: from localhost.localdomain (bigcore.local [IPv6:2a02:8011:d000:212:bc3c:1b4a:a6fa:362f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by gofer.mess.org (Postfix) with ESMTPSA id A3A1D10005B; Tue, 30 Apr 2024 16:06:34 +0100 (BST) From: Sean Young To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] media: mceusb: No need for vendor/product ID in name Date: Tue, 30 Apr 2024 16:06:22 +0100 Message-ID: <20240430150623.2910-1-sean@mess.org> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This is available in other places and doesn't belong in the name of the rc device. Signed-off-by: Sean Young --- drivers/media/rc/mceusb.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c index c76ba24c1f55..615f48898300 100644 --- a/drivers/media/rc/mceusb.c +++ b/drivers/media/rc/mceusb.c @@ -494,7 +494,6 @@ struct mceusb_dev { u32 carrier; unsigned char tx_mask; - char name[128]; char phys[64]; enum mceusb_model_type model; @@ -1591,16 +1590,10 @@ static struct rc_dev *mceusb_init_rc_dev(struct mceusb_dev *ir) goto out; } - snprintf(ir->name, sizeof(ir->name), "%s (%04x:%04x)", - mceusb_model[ir->model].name ? - mceusb_model[ir->model].name : - "Media Center Ed. eHome Infrared Remote Transceiver", - le16_to_cpu(ir->usbdev->descriptor.idVendor), - le16_to_cpu(ir->usbdev->descriptor.idProduct)); - usb_make_path(ir->usbdev, ir->phys, sizeof(ir->phys)); - rc->device_name = ir->name; + rc->device_name = mceusb_model[ir->model].name ? : + "Media Center Ed. eHome Infrared Remote Transceiver"; rc->input_phys = ir->phys; usb_to_input_id(ir->usbdev, &rc->input_id); rc->dev.parent = dev; -- 2.44.0