Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3108947rwb; Mon, 19 Sep 2022 15:18:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7OP94HZKkSlhE7xv3D1fbKeDISwPDoLuReItaACcBSfRWeEGuriTlpQTJxyW/iVNQysqZo X-Received: by 2002:a17:906:328c:b0:780:7574:ced2 with SMTP id 12-20020a170906328c00b007807574ced2mr14693845ejw.634.1663625920483; Mon, 19 Sep 2022 15:18:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663625920; cv=none; d=google.com; s=arc-20160816; b=wqTnSCGPcSmn7p1sFh6c2tCq82ukZA0RsjdeVUjSuRAb+oi84+8Tbis2gPzYeLMmFm CWD8huX69SYIrgVHt+T1FfvqV8xNRrCsKuqmD2B7URbRJj1Nj4OPX9I/WOI/vln/ncUw IqfXkQGWm/sN7s1miMG2vWQtVz1XlFQ0sma0D0zcQnIQQQ2GqeRCdyUXaCymBEbPHnCM DwR5wJYZu5hO+a/iWZeAvHnO7NGwmhprIjqCIqn2/AUs0PwngFwYhmamN3qAx9TBzz/d GcJ8Bh17quyrMuWuNnAXKjS2mVrVhfaGMro2YBg1jQFxSBb2LZEux8heSZ70wmqGvO8F R5tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature:dkim-filter; bh=Ybw8YXXwwBPUc8bFbNbCUhdABz/tJqzbFNtnPKTyRz0=; b=yEwG9DyE/ORf9BiCkvO7Nt1zz7Pj4FgmknJFpeZR7aiGpvN5PQudJN+coPC+BwxNXd 1l10K+8e/ZhkBOt5PavH/0hHJpHZqd8/5tuwGOF4Boi9TjBGIQ0eWT/1kuZjZYcrLAc7 kZD8RhEChr8OOcLHeIUcl2XAmHI7Ty+gXUb6f+B/CBRsTM4A68PLG7foWFtTiGm2nHLD xXzABCoROvGuaTYgPgSbnZBhxoDxlw+ua4MZxh2n7ZYkTdUDLhfHxLjjZiQ1a+TPsd+c bxxtGMXzn8qBrY+vkj2k2Yf8DahoBGkSO9lDoP4DMEV9/z9lUgdWOU2XpR0EWjIa/bsr 6Q1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=ZcPj3Hmk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs10-20020a170906dc8a00b0076f0940cb28si6735206ejc.175.2022.09.19.15.18.15; Mon, 19 Sep 2022 15:18:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=ZcPj3Hmk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229711AbiISWFE (ORCPT + 99 others); Mon, 19 Sep 2022 18:05:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229607AbiISWE5 (ORCPT ); Mon, 19 Sep 2022 18:04:57 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4103E13E8D; Mon, 19 Sep 2022 15:04:56 -0700 (PDT) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 11D9A20B929C; Mon, 19 Sep 2022 15:04:56 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 11D9A20B929C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1663625096; bh=Ybw8YXXwwBPUc8bFbNbCUhdABz/tJqzbFNtnPKTyRz0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZcPj3Hmk5V3cuAfx0glUFqHQJ7uT69u1jaW7A+9ElaKn2O1Q2jZCI1cx5cw+QZ21n mV4RmCEBC+FEvo82mcSEbZGWcb+beffViAYKjfP2iXbYMjsujlZAISF3Djky0QGYf3 ylPSG7tn8/yrit+7oRXSWWwVb6qR42T0lYIDBoQ4= From: Easwar Hariharan To: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] hv: Use PCI_VENDOR_ID_MICROSOFT for better discoverability Date: Mon, 19 Sep 2022 15:04:44 -0700 Message-Id: <1663625084-2518-2-git-send-email-eahariha@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1663625084-2518-1-git-send-email-eahariha@linux.microsoft.com> References: <1663625084-2518-1-git-send-email-eahariha@linux.microsoft.com> X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Easwar Hariharan pci_ids.h already defines PCI_VENDOR_ID_MICROSOFT, and is included via linux/pci.h. Use the define instead of the magic number. Signed-off-by: Easwar Hariharan --- drivers/hv/vmbus_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 3c833ea..f2efb74 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -2052,7 +2052,7 @@ struct hv_device *vmbus_device_create(const guid_t *type, child_device_obj->channel = channel; guid_copy(&child_device_obj->dev_type, type); guid_copy(&child_device_obj->dev_instance, instance); - child_device_obj->vendor_id = 0x1414; /* MSFT vendor ID */ + child_device_obj->vendor_id = PCI_VENDOR_ID_MICROSOFT; return child_device_obj; } -- 1.8.3.1