Message ID | 20231024124115.3598090-4-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1915788vqx; Tue, 24 Oct 2023 05:51:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGi33TCvcfpdXU1z+byGM4b38Y0iOBFeG3h5blF6Pl0O6kXuRTTw2O7rKvoIV6FVyrKh+np X-Received: by 2002:a17:90a:194:b0:27d:72bb:3d92 with SMTP id 20-20020a17090a019400b0027d72bb3d92mr11021213pjc.19.1698151860888; Tue, 24 Oct 2023 05:51:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698151860; cv=none; d=google.com; s=arc-20160816; b=UAS+q28UKP4uOG3aqUb3XusakUID+JgQIwz16RGeBl9cskv+dg6kdYBYNung+3YhVf kVPJCOQXWHkcV+uVgT/0IAT94cS1nEiJHTqJsmnME0u1nKkmtzItryU/JEVJZQX4tB3H BCbPTUOPwzEXP8lQXk5djxwU4kuk2lncNgetfL+lpJlscikpwEnCfUVDVDUMmjTLYqHD GVYk+7Dw6cxYkg3E6IdPYolOaEb30BCvLHwAOrJDUm9vTBJU1hf0KykvfK04iQL5aoRo UwRgJy2CASE5yyTzsOOJe4VobQiuaTI+LUgGCKzx05J7MTPLPDXmNK+PV4bPVz0tBZhA zWkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Hkb8p5FIQ9on82vlr7pmprac6U4qKkMgkcZB0rL/y5c=; fh=79sgu4QAOdY4xMo+DUu2N1ZAcGfeYYsCwQb7nrV5IJk=; b=JbvWyb4UA5ZqTNYjzwta/0kfLlVO9rc2GTGZI4gDgTZnFlMo5WFsdE9/MtFNjd1VHh NpoA7JJvyFe0EYLptTnZOHAhdSYt8oir1XqVWy6xEggQ3jjs8+PBdYWSjIQHjXn13uxy 1acNbflkmrhu9d/XW6PV48RQM04YTAiOajjiZv1xKE2HlY86O2aRTzlpo6eyj1py6m95 YuiR/spVBxsj4b77hd7wEYkKnpx60wEBiPJ/YqGfVAn7OeDuOUifDBXSlfaDA+Bvgcp4 NJVXwPGGoOwTz21sCmN0HruJoEp606LC4yE4GPMO3FK38/j9+FXeZdm6HmXiyMGjWtru pKFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="HhVzcX/j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id s12-20020a17090aad8c00b0027768e7a9aesi8038109pjq.120.2023.10.24.05.51.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 05:51:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="HhVzcX/j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D0072809221A; Tue, 24 Oct 2023 05:50:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234390AbjJXMuX (ORCPT <rfc822;a1648639935@gmail.com> + 26 others); Tue, 24 Oct 2023 08:50:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234396AbjJXMuU (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 24 Oct 2023 08:50:20 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 404E410D5; Tue, 24 Oct 2023 05:50:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698151817; x=1729687817; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KaitaaTgM9cu8b9iRzHkj5trQ0LrGSk+xNOF3Ya/2bQ=; b=HhVzcX/jwDB6uNwqWJX/qTrVtYxgVVUaFSL9U0bCPaVoii8CL/y4rhun UEp5U3l7XpWxxigmvhvTItCAcff+wQmc70Ldk/e/YLSt3/Xi9GtvpfwWt ZFMQIqmsRWaDs6NjTymt96yioZFv2wx3IBXJD+0XS52D6mVBKR/DniU1Y PMiOFR4yEGBpHRP+B2DEpq+oKQwHEDZ6FVAiU12S17f7azmgTeNpAnPeT 5iGkQsr4DRzf9jzFFL+ZcJwWxeuPfhsJLYJG5JznYMlyWs3UssNEsaMRq vZdcI8DWtIh1h15goqQfBf2neZ0oB4nf+gzNa01jkmAG7EveGSaOKISft A==; X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="418172698" X-IronPort-AV: E=Sophos;i="6.03,247,1694761200"; d="scan'208";a="418172698" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2023 05:50:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="875061013" X-IronPort-AV: E=Sophos;i="6.03,247,1694761200"; d="scan'208";a="875061013" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga002.fm.intel.com with ESMTP; 24 Oct 2023 05:50:13 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 725ADBD4; Tue, 24 Oct 2023 15:41:17 +0300 (EEST) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rob Herring <robh@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jiri Slaby <jirislaby@kernel.org>, Tony Lindgren <tony@atomide.com> Subject: [PATCH v1 3/3] serdev: Replace custom code with device_match_acpi_handle() Date: Tue, 24 Oct 2023 15:41:15 +0300 Message-Id: <20231024124115.3598090-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20231024124115.3598090-1-andriy.shevchenko@linux.intel.com> References: <20231024124115.3598090-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 24 Oct 2023 05:50:29 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780641285985965373 X-GMAIL-MSGID: 1780641285985965373 |
Series |
serdev: Update a few places to use new APIs
|
|
Commit Message
Andy Shevchenko
Oct. 24, 2023, 12:41 p.m. UTC
Since driver core provides a generic device_match_acpi_handle()
we may replace the custom code with it.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/tty/serdev/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serdev/core.c b/drivers/tty/serdev/core.c index 6a1e75f98f16..a5fdaf5e148e 100644 --- a/drivers/tty/serdev/core.c +++ b/drivers/tty/serdev/core.c @@ -665,7 +665,7 @@ static int acpi_serdev_check_resources(struct serdev_controller *ctrl, acpi_get_parent(adev->handle, &lookup.controller_handle); /* Make sure controller and ResourceSource handle match */ - if (ACPI_HANDLE(ctrl->dev.parent) != lookup.controller_handle) + if (!device_match_acpi_handle(ctrl->dev.parent, lookup.controller_handle)) return -ENODEV; return 0;